public class SolvableQuotient<C extends GcdRingElem<C>> extends java.lang.Object implements GcdRingElem<SolvableQuotient<C>>, QuotPair<GenPolynomial<C>>
Modifier and Type | Field and Description |
---|---|
GenSolvablePolynomial<C> |
den
Denominator part of the element data structure.
|
GenSolvablePolynomial<C> |
num
Numerator part of the element data structure.
|
SolvableQuotientRing<C> |
ring
SolvableQuotient class factory data structure.
|
Modifier | Constructor and Description |
---|---|
|
SolvableQuotient(SolvableQuotientRing<C> r)
The constructor creates a SolvableQuotient object from a ring factory.
|
|
SolvableQuotient(SolvableQuotientRing<C> r,
GenSolvablePolynomial<C> n)
The constructor creates a SolvableQuotient object from a ring factory and
a numerator polynomial.
|
|
SolvableQuotient(SolvableQuotientRing<C> r,
GenSolvablePolynomial<C> n,
GenSolvablePolynomial<C> d)
The constructor creates a SolvableQuotient object from a ring factory and
a numerator and denominator solvable polynomial.
|
protected |
SolvableQuotient(SolvableQuotientRing<C> r,
GenSolvablePolynomial<C> n,
GenSolvablePolynomial<C> d,
boolean isred)
The constructor creates a SolvableQuotient object from a ring factory and
a numerator and denominator polynomial.
|
Modifier and Type | Method and Description |
---|---|
SolvableQuotient<C> |
abs()
SolvableQuotient absolute value.
|
int |
compareTo(SolvableQuotient<C> b)
SolvableQuotient comparison.
|
SolvableQuotient<C> |
copy()
Clone this.
|
GenSolvablePolynomial<C> |
denominator()
Denominator.
|
SolvableQuotient<C> |
divide(SolvableQuotient<C> S)
SolvableQuotient division.
|
SolvableQuotient<C>[] |
egcd(SolvableQuotient<C> b)
Extended greatest common divisor.
|
boolean |
equals(java.lang.Object b)
Comparison with any other object.
|
SolvableQuotientRing<C> |
factory()
Get the corresponding element factory.
|
SolvableQuotient<C> |
gcd(SolvableQuotient<C> b)
Greatest common divisor.
|
int |
hashCode()
Hash code for this element.
|
SolvableQuotient<C> |
inverse()
SolvableQuotient inverse.
|
boolean |
isConstant()
Is Qoutient a constant.
|
boolean |
isONE()
Is SolvableQuotient one.
|
boolean |
isRightFraction(SolvableQuotient<C> s)
Test if SolvableQuotient right fraction.
|
boolean |
isUnit()
Is SolvableQuotient a unit.
|
boolean |
isZERO()
Is SolvableQuotient zero.
|
SolvableQuotient<C> |
monic()
SolvableQuotient monic.
|
SolvableQuotient<C> |
multiply(C b)
SolvableQuotient multiplication by coefficient.
|
SolvableQuotient<C> |
multiply(ExpVector e)
SolvableQuotient multiplication by exponent.
|
SolvableQuotient<C> |
multiply(GenSolvablePolynomial<C> b)
SolvableQuotient multiplication by GenSolvablePolynomial.
|
SolvableQuotient<C> |
multiply(SolvableQuotient<C> S)
SolvableQuotient multiplication.
|
SolvableQuotient<C> |
negate()
SolvableQuotient negate.
|
GenSolvablePolynomial<C> |
numerator()
Numerator.
|
SolvableQuotient<C>[] |
quotientRemainder(SolvableQuotient<C> S)
Quotient and remainder by division of this by S.
|
SolvableQuotient<C> |
remainder(SolvableQuotient<C> S)
SolvableQuotient remainder.
|
SolvableQuotient<C> |
rightFraction()
SolvableQuotient right fraction.
|
int |
signum()
SolvableQuotient signum.
|
SolvableQuotient<C> |
subtract(SolvableQuotient<C> S)
SolvableQuotient subtraction.
|
SolvableQuotient<C> |
sum(SolvableQuotient<C> S)
SolvableQuotient 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 SolvableQuotientRing<C extends GcdRingElem<C>> ring
public final GenSolvablePolynomial<C extends GcdRingElem<C>> num
public final GenSolvablePolynomial<C extends GcdRingElem<C>> den
public SolvableQuotient(SolvableQuotientRing<C> r)
r
- ring factory.public SolvableQuotient(SolvableQuotientRing<C> r, GenSolvablePolynomial<C> n)
r
- ring factory.n
- numerator solvable polynomial.public SolvableQuotient(SolvableQuotientRing<C> r, GenSolvablePolynomial<C> n, GenSolvablePolynomial<C> d)
r
- ring factory.n
- numerator polynomial.d
- denominator polynomial.protected SolvableQuotient(SolvableQuotientRing<C> r, GenSolvablePolynomial<C> n, GenSolvablePolynomial<C> d, boolean isred)
r
- ring factory.n
- numerator polynomial.d
- denominator polynomial.isred
- unused at the moment.public SolvableQuotientRing<C> factory()
factory
in interface Element<SolvableQuotient<C extends GcdRingElem<C>>>
Element.factory()
public GenSolvablePolynomial<C> numerator()
numerator
in interface QuotPair<GenPolynomial<C extends GcdRingElem<C>>>
QuotPair.numerator()
public GenSolvablePolynomial<C> denominator()
denominator
in interface QuotPair<GenPolynomial<C extends GcdRingElem<C>>>
QuotPair.denominator()
public SolvableQuotient<C> copy()
copy
in interface Element<SolvableQuotient<C extends GcdRingElem<C>>>
Object.clone()
public boolean isZERO()
isZERO
in interface AbelianGroupElem<SolvableQuotient<C extends GcdRingElem<C>>>
AbelianGroupElem.isZERO()
public boolean isONE()
isONE
in interface MonoidElem<SolvableQuotient<C extends GcdRingElem<C>>>
MonoidElem.isONE()
public boolean isUnit()
isUnit
in interface MonoidElem<SolvableQuotient<C extends GcdRingElem<C>>>
MonoidElem.isUnit()
public boolean isConstant()
isConstant
in interface QuotPair<GenPolynomial<C extends GcdRingElem<C>>>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public java.lang.String toScript()
toScript
in interface Element<SolvableQuotient<C extends GcdRingElem<C>>>
Element.toScript()
public java.lang.String toScriptFactory()
toScriptFactory
in interface Element<SolvableQuotient<C extends GcdRingElem<C>>>
Element.toScriptFactory()
public int compareTo(SolvableQuotient<C> b)
compareTo
in interface Element<SolvableQuotient<C extends GcdRingElem<C>>>
compareTo
in interface java.lang.Comparable<SolvableQuotient<C extends GcdRingElem<C>>>
b
- SolvableQuotient.public boolean equals(java.lang.Object b)
equals
in interface Element<SolvableQuotient<C extends GcdRingElem<C>>>
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in interface Element<SolvableQuotient<C extends GcdRingElem<C>>>
hashCode
in class java.lang.Object
Object.hashCode()
public SolvableQuotient<C> rightFraction()
public boolean isRightFraction(SolvableQuotient<C> s)
s
- = SolvableQuotient(a,b)public SolvableQuotient<C> abs()
abs
in interface AbelianGroupElem<SolvableQuotient<C extends GcdRingElem<C>>>
AbelianGroupElem.abs()
public SolvableQuotient<C> sum(SolvableQuotient<C> S)
sum
in interface AbelianGroupElem<SolvableQuotient<C extends GcdRingElem<C>>>
S
- SolvableQuotient.public SolvableQuotient<C> negate()
negate
in interface AbelianGroupElem<SolvableQuotient<C extends GcdRingElem<C>>>
AbelianGroupElem.negate()
public int signum()
signum
in interface AbelianGroupElem<SolvableQuotient<C extends GcdRingElem<C>>>
AbelianGroupElem.signum()
public SolvableQuotient<C> subtract(SolvableQuotient<C> S)
subtract
in interface AbelianGroupElem<SolvableQuotient<C extends GcdRingElem<C>>>
S
- SolvableQuotient.public SolvableQuotient<C> divide(SolvableQuotient<C> S)
divide
in interface MonoidElem<SolvableQuotient<C extends GcdRingElem<C>>>
S
- SolvableQuotient.public SolvableQuotient<C> inverse()
inverse
in interface MonoidElem<SolvableQuotient<C extends GcdRingElem<C>>>
MonoidElem.inverse()
public SolvableQuotient<C> remainder(SolvableQuotient<C> S)
remainder
in interface MonoidElem<SolvableQuotient<C extends GcdRingElem<C>>>
S
- SolvableQuotient.public SolvableQuotient<C>[] quotientRemainder(SolvableQuotient<C> S)
quotientRemainder
in interface MonoidElem<SolvableQuotient<C extends GcdRingElem<C>>>
S
- a SolvableQuotientpublic SolvableQuotient<C> multiply(SolvableQuotient<C> S)
multiply
in interface MonoidElem<SolvableQuotient<C extends GcdRingElem<C>>>
S
- SolvableQuotient.public SolvableQuotient<C> multiply(GenSolvablePolynomial<C> b)
b
- GenSolvablePolynomialpublic SolvableQuotient<C> multiply(C b)
b
- coefficient.public SolvableQuotient<C> multiply(ExpVector e)
e
- exponent vector.public SolvableQuotient<C> monic()
public SolvableQuotient<C> gcd(SolvableQuotient<C> b)
gcd
in interface RingElem<SolvableQuotient<C extends GcdRingElem<C>>>
b
- other element.public SolvableQuotient<C>[] egcd(SolvableQuotient<C> b)
egcd
in interface RingElem<SolvableQuotient<C extends GcdRingElem<C>>>
b
- other element.