Class AlgebraicRoots<C extends GcdRingElem<C> & Rational>
java.lang.Object
edu.jas.root.AlgebraicRoots<C>
- Type Parameters:
C- coefficient type.
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AlgebraicRootsPrimElem
public class AlgebraicRoots<C extends GcdRingElem<C> & Rational>
extends Object
implements Serializable
Container for the real and complex algebraic roots of a univariate
polynomial.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal List<ComplexAlgebraicNumber<C>> Complex algebraic roots.final GenPolynomial<Complex<C>> Univariate polynomial with complex coefficients equivalent to p.final GenPolynomial<C> Univariate polynomial.final List<RealAlgebraicNumber<C>> Real algebraic roots. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor not for use.AlgebraicRoots(GenPolynomial<C> p, GenPolynomial<Complex<C>> cp, List<RealAlgebraicNumber<C>> r, List<ComplexAlgebraicNumber<C>> c) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncopy()Copy this.booleanComparison with any other object.Algebraic number ring.inthashCode()Hash code for this AlgebraicRoots.Get a decimal number scripting compatible string representation.toScript()Get a scripting compatible string representation.toString()String representation of AlgebraicRoots.
-
Field Details
-
p
Univariate polynomial. -
real
Real algebraic roots. -
cp
Univariate polynomial with complex coefficients equivalent to p. -
complex
Complex algebraic roots.
-
-
Constructor Details
-
AlgebraicRoots
protected AlgebraicRoots()Constructor not for use. -
AlgebraicRoots
public AlgebraicRoots(GenPolynomial<C> p, GenPolynomial<Complex<C>> cp, List<RealAlgebraicNumber<C>> r, List<ComplexAlgebraicNumber<C>> c) Constructor.- Parameters:
p- univariate polynomialcp- univariate polynomial with compelx coefficientsr- list of real algebraic rootsc- list of complex algebraic roots
-
-
Method Details
-
toString
-
toScript
Get a scripting compatible string representation.- Returns:
- script compatible representation for this roots.
-
toDecimalScript
Get a decimal number scripting compatible string representation.- Returns:
- decimal number script compatible representation for this roots.
-
copy
-
equals
-
hashCode
-
getAlgebraicRing
Algebraic number ring.- Returns:
- algebraic ring of roots.
-