public class ComplexAlgebraicNumber<C extends GcdRingElem<C> & Rational> extends java.lang.Object implements GcdRingElem<ComplexAlgebraicNumber<C>>
Modifier and Type | Field and Description |
---|---|
AlgebraicNumber<Complex<C>> |
number
Representing AlgebraicNumber.
|
ComplexAlgebraicRing<C> |
ring
Ring part of the data structure.
|
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
ComplexAlgebraicNumber<C> |
abs()
ComplexAlgebraicNumber absolute value.
|
int |
compareTo(AlgebraicNumber<Complex<C>> b)
ComplexAlgebraicNumber comparison.
|
int |
compareTo(ComplexAlgebraicNumber<C> b)
ComplexAlgebraicNumber comparison.
|
ComplexAlgebraicNumber<C> |
copy()
Copy this.
|
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 |
isRootOfUnity()
Is ComplexAlgebraicNumber a root of unity.
|
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>[] |
quotientRemainder(ComplexAlgebraicNumber<C> S)
Quotient and remainder by division of this by S.
|
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.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
leftDivide, leftRemainder, power, rightDivide, rightRemainder, twosidedDivide, twosidedRemainder
public final AlgebraicNumber<Complex<C extends GcdRingElem<C> & Rational>> number
public final ComplexAlgebraicRing<C extends GcdRingElem<C> & Rational> ring
public ComplexAlgebraicNumber(ComplexAlgebraicRing<C> r, GenPolynomial<Complex<C>> a)
r
- ring ComplexAlgebraicRinga
- value GenPolynomialpublic ComplexAlgebraicNumber(ComplexAlgebraicRing<C> r, AlgebraicNumber<Complex<C>> a)
r
- ring ComplexAlgebraicRinga
- value AlgebraicNumberpublic ComplexAlgebraicNumber(ComplexAlgebraicRing<C> r)
r
- ring ComplexAlgebraicRingpublic ComplexAlgebraicRing<C> factory()
factory
in interface Element<ComplexAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
Element.factory()
public ComplexAlgebraicNumber<C> copy()
copy
in interface Element<ComplexAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
Element.copy()
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 boolean isRootOfUnity()
public java.lang.String toString()
toString
in class java.lang.Object
Object.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.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in interface Element<ComplexAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
hashCode
in class java.lang.Object
Object.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>[] quotientRemainder(ComplexAlgebraicNumber<C> S)
quotientRemainder
in interface MonoidElem<ComplexAlgebraicNumber<C extends GcdRingElem<C> & Rational>>
S
- a ComplexAlgebraicNumberpublic 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()