|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.perisic.ring.Ring
com.perisic.ring.QuotientField
public class QuotientField
A field of fractions p/q with p,q in B, where B is any Ring. Usually B is here a PolynomialRing, for example F2[t] or Z[a][b]. B must be at least an UFD.
You can use this class also to constuct a rational field Q with B = Z. For performance reasons it is recommended to use Ring.Q of type RationalField instead.
Field Summary |
---|
Fields inherited from class com.perisic.ring.Ring |
---|
C, F2, Q, R, Z |
Constructor Summary | |
---|---|
QuotientField(Ring BaseRing)
Construction. |
Method Summary | |
---|---|
RingElt |
add(RingElt a,
RingElt b)
Addition a + b. |
RingElt |
construct(RingElt numerator,
RingElt denominator)
Constructs numerator/denominator. |
RingElt |
denominator(RingElt b)
Returns the denominator of b as an element of the base ring. |
boolean |
equalZero(RingElt b)
True if b == 0. |
Ring |
getBaseRing()
Returns the denominator and numerator ring B (the base ring). |
RingElt |
inv(RingElt b)
Returns b^-1. |
boolean |
isField()
Returns true. |
boolean |
isIntegral(RingElt b)
true if the denominator is one. |
static void |
main(java.lang.String[] args)
|
RingElt |
map(RingElt a)
If a is an element of another QuotientRing, numerator and denominator are mapped to B. |
RingElt |
map(java.lang.String a)
Maps the String a into this Ring. |
RingElt |
mult(RingElt a,
RingElt b)
Multiplication a * b. |
RingElt |
neg(RingElt b)
Returns -b. |
RingElt |
numerator(RingElt b)
Returns the numerator of b as an element of the base ring. |
RingElt |
one()
Returns 1. |
java.lang.String |
toString()
Returns "Quot(str)" where str = B.toString(). |
RingElt |
zero()
Returns 0. |
Methods inherited from class com.perisic.ring.Ring |
---|
div, ediv, eltToString, equal, evaluatePolynomial, gcd, isEuclidian, isUFD, map, map, map, mod, pow, pow, sub, tdiv |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QuotientField(Ring BaseRing)
Method Detail |
---|
public boolean isField()
isField
in class Ring
public Ring getBaseRing()
public RingElt numerator(RingElt b)
public RingElt denominator(RingElt b)
public RingElt add(RingElt a, RingElt b)
add
in class Ring
public RingElt mult(RingElt a, RingElt b)
mult
in class Ring
public RingElt one()
one
in class Ring
public RingElt zero()
zero
in class Ring
public RingElt inv(RingElt b)
inv
in class Ring
public RingElt neg(RingElt b)
neg
in class Ring
public boolean equalZero(RingElt b)
equalZero
in class Ring
public RingElt map(RingElt a)
map
in class Ring
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isIntegral(RingElt b)
public RingElt construct(RingElt numerator, RingElt denominator)
public RingElt map(java.lang.String a)
map
in class Ring
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |