|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--com.perisic.ring.Ring
|
+--com.perisic.ring.ModularRing
Implements a ring R/fR where R is an element of the ring R.
Currently only implemented for polynomial rings R. Might therefore be used for constructing algebraic extensions over fields.
Use the class ModularIntegerRing for constructing Z/mZ.
| Fields inherited from class com.perisic.ring.Ring |
C,
F2,
Q,
R,
Z |
| Constructor Summary | |
ModularRing(RingElt m)
Constructs m.getRing()/m * m.getRing(). |
|
| Method Summary | |
RingElt |
add(RingElt a,
RingElt b)
Addition. |
void |
displayMod()
Determins the behaviour of the eltToString() method. |
java.lang.String |
eltToString(RingElt a)
Returns a in the form "a" or "a mod f" depending on the value of hideMod. |
boolean |
equalZero(RingElt b)
true if b == 0, false otherwise. |
boolean |
getHideMod()
true if hideMod() has been called. |
RingElt |
getModulus()
Returns f if this is R/fR. |
RingElt |
getValue(RingElt b)
Returns the value of b as an element of R. |
void |
hideMod()
Determins the behaviour of the eltToString() method. |
RingElt |
inv(RingElt b)
Returns the inverse b. |
RingElt |
map(RingElt a)
If the ring of a is a quotient field we map
the quotient of numerator and denominator. |
RingElt |
map(java.lang.String str)
Maps str first into R, then into this. |
RingElt |
mult(RingElt a,
RingElt b)
Multiplication. |
RingElt |
neg(RingElt b)
Returns -b. |
RingElt |
one()
Returns 1. |
void |
setHideMod(boolean hideMod)
Determins the behaviour of the eltToString() method. |
RingElt |
zero()
Returns 0. |
| Methods inherited from class com.perisic.ring.Ring |
div,
ediv,
equal,
evaluatePolynomial,
gcd,
isEuclidian,
isField,
isUFD,
map,
map,
map,
mod,
pow,
pow,
sub,
tdiv |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public ModularRing(RingElt m)
| Method Detail |
public void setHideMod(boolean hideMod)
public void hideMod()
public void displayMod()
public boolean getHideMod()
public RingElt getModulus()
public RingElt getValue(RingElt b)
public RingElt add(RingElt a,
RingElt b)
public RingElt mult(RingElt a,
RingElt b)
public RingElt one()
public RingElt zero()
public RingElt inv(RingElt b)
public RingElt neg(RingElt b)
public boolean equalZero(RingElt b)
public RingElt map(java.lang.String str)
public RingElt map(RingElt a)
a is a quotient field we map
the quotient of numerator and denominator.
Otherwise we
map a first into R, then into this Ring.
If a.getRing().equals(this), a is also mapped.public java.lang.String eltToString(RingElt a)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||