C
- coefficient type.public class AlgebraicRoots<C extends GcdRingElem<C> & Rational> extends java.lang.Object implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
java.util.List<ComplexAlgebraicNumber<C>> |
complex
Complex algebraic roots.
|
GenPolynomial<Complex<C>> |
cp
Univariate polynomial with complex coefficients equivalent to p.
|
GenPolynomial<C> |
p
Univariate polynomial.
|
java.util.List<RealAlgebraicNumber<C>> |
real
Real algebraic roots.
|
Modifier | Constructor and Description |
---|---|
protected |
AlgebraicRoots()
Constructor not for use.
|
|
AlgebraicRoots(GenPolynomial<C> p,
GenPolynomial<Complex<C>> cp,
java.util.List<RealAlgebraicNumber<C>> r,
java.util.List<ComplexAlgebraicNumber<C>> c)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
AlgebraicRoots<C> |
copy()
Copy this.
|
boolean |
equals(java.lang.Object b)
Comparison with any other object.
|
AlgebraicNumberRing<C> |
getAlgebraicRing()
Algebraic number ring.
|
int |
hashCode()
Hash code for this AlgebraicRoots.
|
java.lang.String |
toDecimalScript()
Get a decimal number scripting compatible string representation.
|
java.lang.String |
toScript()
Get a scripting compatible string representation.
|
java.lang.String |
toString()
String representation of AlgebraicRoots.
|
public final GenPolynomial<C extends GcdRingElem<C> & Rational> p
public final java.util.List<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>> real
public final GenPolynomial<Complex<C extends GcdRingElem<C> & Rational>> cp
public final java.util.List<ComplexAlgebraicNumber<C extends GcdRingElem<C> & Rational>> complex
protected AlgebraicRoots()
public AlgebraicRoots(GenPolynomial<C> p, GenPolynomial<Complex<C>> cp, java.util.List<RealAlgebraicNumber<C>> r, java.util.List<ComplexAlgebraicNumber<C>> c)
p
- univariate polynomialcp
- univariate polynomial with compelx coefficientsr
- list of real algebraic rootsc
- list of complex algebraic rootspublic java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public java.lang.String toScript()
public java.lang.String toDecimalScript()
public AlgebraicRoots<C> copy()
public boolean equals(java.lang.Object b)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public AlgebraicNumberRing<C> getAlgebraicRing()