Package edu.jas.root
Class DecimalRoots<C extends GcdRingElem<C> & Rational>
java.lang.Object
edu.jas.root.DecimalRoots<C>
- Type Parameters:
C
- coefficient type.
- All Implemented Interfaces:
Serializable
public class DecimalRoots<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
<Complex<BigDecimal>> complex decimal roots.final GenPolynomial
<Complex<C>> univariate polynomial with complex coefficients.final GenPolynomial
<C> univariate polynomial.final List
<BigDecimal> real decimal roots. -
Constructor Summary
ConstructorsConstructorDescriptionDecimalRoots
(GenPolynomial<C> p, GenPolynomial<Complex<C>> cp, List<BigDecimal> r, List<Complex<BigDecimal>> c) Constructor. -
Method Summary
-
Field Details
-
p
univariate polynomial. -
real
real decimal roots. -
cp
univariate polynomial with complex coefficients. -
complex
complex decimal roots.
-
-
Constructor Details
-
DecimalRoots
public DecimalRoots(GenPolynomial<C> p, GenPolynomial<Complex<C>> cp, List<BigDecimal> r, List<Complex<BigDecimal>> c) Constructor.- Parameters:
p
- univariate polynomialcp
- univariate complex polynomialr
- list of real decimal rootsc
- list of complex decimal roots
-
-
Method Details
-
toString
String representation of AlgebraicRoots. -
toScript
Get a scripting compatible string representation.- Returns:
- script compatible representation for this Interval.
-
copy
Copy this.- Returns:
- a copy of this.
-
equals
Comparison with any other object. -
hashCode
public int hashCode()Hash code for this AlgebraicRoots.
-