public class Quotient<C extends RingElem<C>> extends java.lang.Object implements RingElem<Quotient<C>>, QuotPair<C>
Modifier and Type | Field and Description |
---|---|
C |
den
Denominator part of the element data structure.
|
C |
num
Numerator part of the element data structure.
|
QuotientRing<C> |
ring
Quotient class factory data structure.
|
Modifier | Constructor and Description |
---|---|
|
Quotient(QuotientRing<C> r)
The constructor creates a Quotient object from a ring factory.
|
|
Quotient(QuotientRing<C> r,
C n)
The constructor creates a Quotient object from a ring factory and a
numerator element.
|
|
Quotient(QuotientRing<C> r,
C n,
C d)
The constructor creates a Quotient object from a ring factory and a
numerator and denominator element.
|
protected |
Quotient(QuotientRing<C> r,
C n,
C d,
boolean isred)
The constructor creates a Quotient object from a ring factory and a
numerator and denominator element.
|
Modifier and Type | Method and Description |
---|---|
Quotient<C> |
abs()
Quotient absolute value.
|
int |
compareTo(Quotient<C> b)
Quotient comparison.
|
Quotient<C> |
copy()
Clone this.
|
C |
denominator()
Denominator.
|
Quotient<C> |
divide(Quotient<C> S)
Quotient division.
|
Quotient<C>[] |
egcd(Quotient<C> b)
Extended greatest common divisor.
|
boolean |
equals(java.lang.Object b)
Comparison with any other object.
|
QuotientRing<C> |
factory()
Get the corresponding element factory.
|
Quotient<C> |
gcd(Quotient<C> b)
Greatest common divisor.
|
int |
hashCode()
Hash code for this local.
|
Quotient<C> |
inverse()
Quotient inverse.
|
boolean |
isConstant()
Is Quotient a constant.
|
boolean |
isONE()
Is Quotient one.
|
boolean |
isUnit()
Is Quotient unit.
|
boolean |
isZERO()
Is Quotient zero.
|
Quotient<C> |
monic()
Quotient monic.
|
Quotient<C> |
multiply(Quotient<C> S)
Quotient multiplication.
|
Quotient<C> |
negate()
Quotient negate.
|
C |
numerator()
Numerator.
|
Quotient<C>[] |
quotientRemainder(Quotient<C> S)
Quotient and remainder by division of this by S.
|
Quotient<C> |
remainder(Quotient<C> S)
Quotient remainder.
|
int |
signum()
Quotient signum.
|
Quotient<C> |
subtract(Quotient<C> S)
Quotient subtraction.
|
Quotient<C> |
sum(Quotient<C> S)
Quotient summation.
|
java.lang.String |
toScript()
Get a scripting compatible string representation.
|
java.lang.String |
toScriptFactory()
Get a scripting compatible string representation of the factory.
|
java.lang.String |
toString()
Get the String representation as RingElem.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
leftDivide, leftRemainder, power, rightDivide, rightRemainder, twosidedDivide, twosidedRemainder
public final QuotientRing<C extends RingElem<C>> ring
public Quotient(QuotientRing<C> r)
r
- ring factory.public Quotient(QuotientRing<C> r, C n)
r
- ring factory.n
- numerator.public Quotient(QuotientRing<C> r, C n, C d)
r
- ring factory.n
- numerator.d
- denominator.protected Quotient(QuotientRing<C> r, C n, C d, boolean isred)
r
- ring factory.n
- numerator.d
- denominator.isred
- true if gcd(n,d) == 1, else false.public QuotientRing<C> factory()
public C denominator()
denominator
in interface QuotPair<C extends RingElem<C>>
QuotPair.denominator()
public boolean isConstant()
isConstant
in interface QuotPair<C extends RingElem<C>>
UnsupportedOperationException.
public boolean isZERO()
isZERO
in interface AbelianGroupElem<Quotient<C extends RingElem<C>>>
AbelianGroupElem.isZERO()
public boolean isONE()
isONE
in interface MonoidElem<Quotient<C extends RingElem<C>>>
MonoidElem.isONE()
public boolean isUnit()
isUnit
in interface MonoidElem<Quotient<C extends RingElem<C>>>
MonoidElem.isUnit()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public java.lang.String toScript()
public java.lang.String toScriptFactory()
toScriptFactory
in interface Element<Quotient<C extends RingElem<C>>>
Element.toScriptFactory()
public boolean equals(java.lang.Object b)
public int hashCode()
public Quotient<C> abs()
abs
in interface AbelianGroupElem<Quotient<C extends RingElem<C>>>
AbelianGroupElem.abs()
public Quotient<C> negate()
negate
in interface AbelianGroupElem<Quotient<C extends RingElem<C>>>
AbelianGroupElem.negate()
public int signum()
signum
in interface AbelianGroupElem<Quotient<C extends RingElem<C>>>
AbelianGroupElem.signum()
public Quotient<C> inverse()
inverse
in interface MonoidElem<Quotient<C extends RingElem<C>>>
MonoidElem.inverse()
public Quotient<C>[] quotientRemainder(Quotient<C> S)
quotientRemainder
in interface MonoidElem<Quotient<C extends RingElem<C>>>
S
- a Quotientpublic Quotient<C> gcd(Quotient<C> b)