|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.jas.root.ComplexAlgebraicNumber<C>
public class ComplexAlgebraicNumber<C extends GcdRingElem<C> & Rational>
Complex algebraic number class based on AlgebraicNumber. Objects of this class are immutable.
| Field Summary | |
|---|---|
AlgebraicNumber<Complex<C>> |
number
Representing AlgebraicNumber. |
ComplexAlgebraicRing<C> |
ring
Ring part of the data structure. |
| Constructor Summary | |
|---|---|
ComplexAlgebraicNumber(ComplexAlgebraicRing<C> r)
The constructor creates a ComplexAlgebraicNumber object from a GenPolynomial object module. |
|
ComplexAlgebraicNumber(ComplexAlgebraicRing<C> r,
AlgebraicNumber<Complex<C>> a)
The constructor creates a ComplexAlgebraicNumber object from ComplexAlgebraicRing modul and a AlgebraicNumber value. |
|
ComplexAlgebraicNumber(ComplexAlgebraicRing<C> r,
GenPolynomial<Complex<C>> a)
The constructor creates a ComplexAlgebraicNumber object from ComplexAlgebraicRing modul and a GenPolynomial value. |
|
| Method Summary | |
|---|---|
ComplexAlgebraicNumber<C> |
abs()
ComplexAlgebraicNumber absolute value. |
ComplexAlgebraicNumber<C> |
clone()
Clone this. |
int |
compareTo(AlgebraicNumber<Complex<C>> b)
ComplexAlgebraicNumber comparison. |
int |
compareTo(ComplexAlgebraicNumber<C> b)
ComplexAlgebraicNumber comparison. |
Complex<BigDecimal> |
decimalMagnitude()
ComplexAlgebraicNumber magnitude. |
ComplexAlgebraicNumber<C> |
divide(ComplexAlgebraicNumber<C> S)
ComplexAlgebraicNumber division. |
ComplexAlgebraicNumber<C>[] |
egcd(ComplexAlgebraicNumber<C> S)
ComplexAlgebraicNumber extended greatest common divisor. |
boolean |
equals(java.lang.Object b)
Comparison with any other object. |
ComplexAlgebraicRing<C> |
factory()
Get the corresponding element factory. |
ComplexAlgebraicNumber<C> |
gcd(ComplexAlgebraicNumber<C> S)
ComplexAlgebraicNumber greatest common divisor. |
int |
hashCode()
Hash code for this ComplexAlgebraicNumber. |
ComplexAlgebraicNumber<C> |
inverse()
ComplexAlgebraicNumber inverse. |
boolean |
isONE()
Is ComplexAlgebraicNumber one. |
boolean |
isUnit()
Is ComplexAlgebraicNumber unit. |
boolean |
isZERO()
Is ComplexAlgebraicNumber zero. |
Complex<BigRational> |
magnitude()
ComplexAlgebraicNumber magnitude. |
ComplexAlgebraicNumber<C> |
monic()
ComplexAlgebraicNumber monic. |
ComplexAlgebraicNumber<C> |
multiply(Complex<C> c)
ComplexAlgebraicNumber multiplication. |
ComplexAlgebraicNumber<C> |
multiply(ComplexAlgebraicNumber<C> S)
ComplexAlgebraicNumber multiplication. |
ComplexAlgebraicNumber<C> |
multiply(GenPolynomial<Complex<C>> c)
ComplexAlgebraicNumber multiplication. |
ComplexAlgebraicNumber<C> |
negate()
ComplexAlgebraicNumber negate. |
ComplexAlgebraicNumber<C> |
remainder(ComplexAlgebraicNumber<C> S)
ComplexAlgebraicNumber remainder. |
int |
signum()
ComplexAlgebraicNumber signum. |
ComplexAlgebraicNumber<C> |
subtract(ComplexAlgebraicNumber<C> S)
ComplexAlgebraicNumber subtraction. |
ComplexAlgebraicNumber<C> |
sum(AlgebraicNumber<Complex<C>> c)
ComplexAlgebraicNumber summation. |
ComplexAlgebraicNumber<C> |
sum(Complex<C> c)
ComplexAlgebraicNumber summation. |
ComplexAlgebraicNumber<C> |
sum(ComplexAlgebraicNumber<C> S)
ComplexAlgebraicNumber summation. |
ComplexAlgebraicNumber<C> |
sum(GenPolynomial<Complex<C>> c)
ComplexAlgebraicNumber 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 AlgebraicNumber<Complex<C extends GcdRingElem<C> & Rational>> number
public final ComplexAlgebraicRing<C extends GcdRingElem<C> & Rational> ring
| Constructor Detail |
|---|
public ComplexAlgebraicNumber(ComplexAlgebraicRing<C> r,
GenPolynomial<Complex<C>> a)
r - ring ComplexAlgebraicRinga - value GenPolynomial
public ComplexAlgebraicNumber(ComplexAlgebraicRing<C> r,
AlgebraicNumber<Complex<C>> a)
r - ring ComplexAlgebraicRinga - value AlgebraicNumberpublic ComplexAlgebraicNumber(ComplexAlgebraicRing<C> r)
r - ring ComplexAlgebraicRing| Method Detail |
|---|
public ComplexAlgebraicRing<C> factory()
factory in interface Element<ComplexAlgebraicNumber<C extends GcdRingElem<C> & Rational>>Element.factory()public ComplexAlgebraicNumber<C> clone()
clone in class java.lang.ObjectObject.clone()public boolean isZERO()
isZERO in interface AbelianGroupElem<ComplexAlgebraicNumber<C extends GcdRingElem<C> & Rational>>AbelianGroupElem.isZERO()public boolean isONE()
isONE in interface MonoidElem<ComplexAlgebraicNumber<C extends GcdRingElem<C> & Rational>>MonoidElem.isONE()public boolean isUnit()
isUnit in interface MonoidElem<ComplexAlgebraicNumber<C extends GcdRingElem<C> & Rational>>MonoidElem.isUnit()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.lang.String toScript()
toScript in interface Element<ComplexAlgebraicNumber<C extends GcdRingElem<C> & Rational>>Element.toScript()public java.lang.String toScriptFactory()
toScriptFactory in interface Element<ComplexAlgebraicNumber<C extends GcdRingElem<C> & Rational>>Element.toScriptFactory()public int compareTo(ComplexAlgebraicNumber<C> b)
compareTo in interface Element<ComplexAlgebraicNumber<C extends GcdRingElem<C> & Rational>>compareTo in interface java.lang.Comparable<ComplexAlgebraicNumber<C extends GcdRingElem<C> & Rational>>b - ComplexAlgebraicNumber.
public int compareTo(AlgebraicNumber<Complex<C>> b)
b - AlgebraicNumber.
public boolean equals(java.lang.Object b)
equals in interface Element<ComplexAlgebraicNumber<C extends GcdRingElem<C> & Rational>>equals in class java.lang.ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in interface Element<ComplexAlgebraicNumber<C extends GcdRingElem<C> & Rational>>hashCode in class java.lang.ObjectObject.hashCode()public ComplexAlgebraicNumber<C> abs()
abs in interface AbelianGroupElem<ComplexAlgebraicNumber<C extends GcdRingElem<C> & Rational>>AbelianGroupElem.abs()public ComplexAlgebraicNumber<C> sum(ComplexAlgebraicNumber<C> S)
sum in interface AbelianGroupElem<ComplexAlgebraicNumber<C extends GcdRingElem<C> & Rational>>S - ComplexAlgebraicNumber.
public ComplexAlgebraicNumber<C> sum(GenPolynomial<Complex<C>> c)
c - complex polynomial.
public ComplexAlgebraicNumber<C> sum(AlgebraicNumber<Complex<C>> c)
c - algebraic number.
public ComplexAlgebraicNumber<C> sum(Complex<C> c)
c - coefficient.
public ComplexAlgebraicNumber<C> negate()
negate in interface AbelianGroupElem<ComplexAlgebraicNumber<C extends GcdRingElem<C> & Rational>>AbelianGroupElem.negate()public ComplexAlgebraicNumber<C> subtract(ComplexAlgebraicNumber<C> S)
subtract in interface AbelianGroupElem<ComplexAlgebraicNumber<C extends GcdRingElem<C> & Rational>>S - ComplexAlgebraicNumber.
public ComplexAlgebraicNumber<C> divide(ComplexAlgebraicNumber<C> S)
divide in interface MonoidElem<ComplexAlgebraicNumber<C extends GcdRingElem<C> & Rational>>S - ComplexAlgebraicNumber.
public ComplexAlgebraicNumber<C> inverse()
inverse in interface MonoidElem<ComplexAlgebraicNumber<C extends GcdRingElem<C> & Rational>>NotInvertibleException - if the element is not invertible.MonoidElem.inverse()public ComplexAlgebraicNumber<C> remainder(ComplexAlgebraicNumber<C> S)
remainder in interface MonoidElem<ComplexAlgebraicNumber<C extends GcdRingElem<C> & Rational>>S - ComplexAlgebraicNumber.
public ComplexAlgebraicNumber<C> multiply(ComplexAlgebraicNumber<C> S)
multiply in interface MonoidElem<ComplexAlgebraicNumber<C extends GcdRingElem<C> & Rational>>S - ComplexAlgebraicNumber.
public ComplexAlgebraicNumber<C> multiply(Complex<C> c)
c - coefficient.
public ComplexAlgebraicNumber<C> multiply(GenPolynomial<Complex<C>> c)
c - polynomial.
public ComplexAlgebraicNumber<C> monic()
public ComplexAlgebraicNumber<C> gcd(ComplexAlgebraicNumber<C> S)
gcd in interface RingElem<ComplexAlgebraicNumber<C extends GcdRingElem<C> & Rational>>S - ComplexAlgebraicNumber.
public ComplexAlgebraicNumber<C>[] egcd(ComplexAlgebraicNumber<C> S)
egcd in interface RingElem<ComplexAlgebraicNumber<C extends GcdRingElem<C> & Rational>>S - ComplexAlgebraicNumber.
public int signum()
signum in interface AbelianGroupElem<ComplexAlgebraicNumber<C extends GcdRingElem<C> & Rational>>AbelianGroupElem.signum()public Complex<BigRational> magnitude()
public Complex<BigDecimal> decimalMagnitude()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||