|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.jas.application.RealAlgebraicNumber<C>
public class RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>
Complex algebraic number class based on bi-variate real algebraic numbers. Objects of this class are immutable. Bi-variate ideal implementation is in version 3614 2011-04-28 09:20:34Z.
Field Summary | |
---|---|
RealAlgebraicNumber<RealAlgebraicNumber<C>> |
number
Representing recursive RealAlgebraicNumber. |
RealAlgebraicRing<C> |
ring
Ring part of the data structure. |
Constructor Summary | |
---|---|
RealAlgebraicNumber(RealAlgebraicRing<C> r)
The constructor creates a zero RealAlgebraicNumber. |
|
RealAlgebraicNumber(RealAlgebraicRing<C> r,
GenPolynomial<C> a)
The constructor creates a RealAlgebraicNumber object from a GenPolynomial value. |
|
RealAlgebraicNumber(RealAlgebraicRing<C> r,
RealAlgebraicNumber<RealAlgebraicNumber<C>> a)
The constructor creates a RealAlgebraicNumber object from a recursive real algebraic value. |
Method Summary | |
---|---|
RealAlgebraicNumber<C> |
abs()
RealAlgebraicNumber absolute value. |
RealAlgebraicNumber<C> |
clone()
Clone this. |
int |
compareTo(RealAlgebraicNumber<C> b)
RealAlgebraicNumber comparison. |
int |
compareTo(RealAlgebraicNumber<RealAlgebraicNumber<C>> b)
RealAlgebraicNumber comparison. |
BigDecimal |
decimalMagnitude()
RealAlgebraicNumber decimal magnitude. |
RealAlgebraicNumber<C> |
divide(RealAlgebraicNumber<C> S)
RealAlgebraicNumber division. |
RealAlgebraicNumber<C>[] |
egcd(RealAlgebraicNumber<C> S)
RealAlgebraicNumber extended greatest common divisor. |
boolean |
equals(java.lang.Object b)
Comparison with any other object. |
RealAlgebraicRing<C> |
factory()
Get the corresponding element factory. |
RealAlgebraicNumber<C> |
gcd(RealAlgebraicNumber<C> S)
RealAlgebraicNumber greatest common divisor. |
BigRational |
getRational()
Return a BigRational approximation of this Element. |
int |
hashCode()
Hash code for this RealAlgebraicNumber. |
RealAlgebraicNumber<C> |
inverse()
RealAlgebraicNumber inverse. |
boolean |
isONE()
Is RealAlgebraicNumber one. |
boolean |
isUnit()
Is RealAlgebraicNumber unit. |
boolean |
isZERO()
Is RealAlgebraicNumber zero. |
BigRational |
magnitude()
RealAlgebraicNumber magnitude. |
RealAlgebraicNumber<C> |
monic()
RealAlgebraicNumber monic. |
RealAlgebraicNumber<C> |
multiply(RealAlgebraicNumber<C> S)
RealAlgebraicNumber multiplication. |
RealAlgebraicNumber<C> |
multiply(RealAlgebraicNumber<RealAlgebraicNumber<C>> c)
RealAlgebraicNumber multiplication. |
RealAlgebraicNumber<C> |
negate()
RealAlgebraicNumber negate. |
RealAlgebraicNumber<C> |
remainder(RealAlgebraicNumber<C> S)
RealAlgebraicNumber remainder. |
int |
signum()
RealAlgebraicNumber signum. |
RealAlgebraicNumber<C> |
subtract(RealAlgebraicNumber<C> S)
RealAlgebraicNumber subtraction. |
RealAlgebraicNumber<C> |
sum(RealAlgebraicNumber<C> S)
RealAlgebraicNumber summation. |
RealAlgebraicNumber<C> |
sum(RealAlgebraicNumber<RealAlgebraicNumber<C>> c)
RealAlgebraicNumber 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. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final RealAlgebraicNumber<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>> number
public final RealAlgebraicRing<C extends GcdRingElem<C> & Rational> ring
Constructor Detail |
---|
public RealAlgebraicNumber(RealAlgebraicRing<C> r)
r
- ring RealAlgebraicRingpublic RealAlgebraicNumber(RealAlgebraicRing<C> r, GenPolynomial<C> a)
r
- ring RealAlgebraicRinga
- value GenPolynomialpublic RealAlgebraicNumber(RealAlgebraicRing<C> r, RealAlgebraicNumber<RealAlgebraicNumber<C>> a)
r
- ring RealAlgebraicRinga
- recursive real algebraic number.Method Detail |
---|
public RealAlgebraicRing<C> factory()
factory
in interface Element<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
Element.factory()
public RealAlgebraicNumber<C> clone()
clone
in class java.lang.Object
Object.clone()
public BigRational getRational()
getRational
in interface Rational
Rational.getRational()
public boolean isZERO()
isZERO
in interface AbelianGroupElem<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
AbelianGroupElem.isZERO()
public boolean isONE()
isONE
in interface MonoidElem<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
MonoidElem.isONE()
public boolean isUnit()
isUnit
in interface MonoidElem<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
MonoidElem.isUnit()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public java.lang.String toScript()
toScript
in interface Element<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
Element.toScript()
public java.lang.String toScriptFactory()
toScriptFactory
in interface Element<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
Element.toScriptFactory()
public int compareTo(RealAlgebraicNumber<C> b)
compareTo
in interface Element<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
compareTo
in interface java.lang.Comparable<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
b
- RealAlgebraicNumber.
public int compareTo(RealAlgebraicNumber<RealAlgebraicNumber<C>> b)
b
- AlgebraicNumber.
public boolean equals(java.lang.Object b)
equals
in interface Element<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in interface Element<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
hashCode
in class java.lang.Object
Object.hashCode()
public RealAlgebraicNumber<C> abs()
abs
in interface AbelianGroupElem<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
AbelianGroupElem.abs()
public RealAlgebraicNumber<C> sum(RealAlgebraicNumber<C> S)
sum
in interface AbelianGroupElem<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
S
- RealAlgebraicNumber.
public RealAlgebraicNumber<C> sum(RealAlgebraicNumber<RealAlgebraicNumber<C>> c)
c
- recursive real algebraic number.
public RealAlgebraicNumber<C> negate()
negate
in interface AbelianGroupElem<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
AbelianGroupElem.negate()
public RealAlgebraicNumber<C> subtract(RealAlgebraicNumber<C> S)
subtract
in interface AbelianGroupElem<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
S
- RealAlgebraicNumber.
public RealAlgebraicNumber<C> divide(RealAlgebraicNumber<C> S)
divide
in interface MonoidElem<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
S
- RealAlgebraicNumber.
public RealAlgebraicNumber<C> inverse()
inverse
in interface MonoidElem<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
NotInvertibleException
- if the element is not invertible.MonoidElem.inverse()
public RealAlgebraicNumber<C> remainder(RealAlgebraicNumber<C> S)
remainder
in interface MonoidElem<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
S
- RealAlgebraicNumber.
public RealAlgebraicNumber<C> multiply(RealAlgebraicNumber<C> S)
multiply
in interface MonoidElem<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
S
- RealAlgebraicNumber.
public RealAlgebraicNumber<C> multiply(RealAlgebraicNumber<RealAlgebraicNumber<C>> c)
c
- recursive real algebraic number.
public RealAlgebraicNumber<C> monic()
public RealAlgebraicNumber<C> gcd(RealAlgebraicNumber<C> S)
gcd
in interface RingElem<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
S
- RealAlgebraicNumber.
public RealAlgebraicNumber<C>[] egcd(RealAlgebraicNumber<C> S)
egcd
in interface RingElem<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
S
- RealAlgebraicNumber.
public int signum()
signum
in interface AbelianGroupElem<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
AbelianGroupElem.signum()
public BigRational magnitude()
public BigDecimal decimalMagnitude()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |