Package edu.jas.application
Class IdealWithComplexAlgebraicRoots<D extends GcdRingElem<D> & Rational>
- java.lang.Object
-
- edu.jas.application.IdealWithUniv<D>
-
- edu.jas.application.IdealWithComplexAlgebraicRoots<D>
-
- All Implemented Interfaces:
java.io.Serializable
public class IdealWithComplexAlgebraicRoots<D extends GcdRingElem<D> & Rational> extends IdealWithUniv<D>
Container for Ideals together with univariate polynomials and complex algebraic roots.- Author:
- Heinz Kredel
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<java.util.List<Complex<RealAlgebraicNumber<D>>>>
can
The list of complex algebraic roots.protected java.util.List<java.util.List<Complex<BigDecimal>>>
droots
The list of decimal approximations of the complex algebraic roots.-
Fields inherited from class edu.jas.application.IdealWithUniv
ideal, others, upolys
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
IdealWithComplexAlgebraicRoots()
Constructor not for use.IdealWithComplexAlgebraicRoots(Ideal<D> id, java.util.List<GenPolynomial<D>> up, java.util.List<java.util.List<Complex<RealAlgebraicNumber<D>>>> cr)
Constructor.IdealWithComplexAlgebraicRoots(IdealWithUniv<D> iu, java.util.List<java.util.List<Complex<RealAlgebraicNumber<D>>>> cr)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.util.List<Complex<BigDecimal>>>
decimalApproximation()
Get decimal approximation of the complex root tuples.void
doDecimalApproximation()
compute decimal approximation of the complex root tuples.boolean
isDecimalApproximation()
Is decimal approximation of the complex roots.java.lang.String
toScript()
Get a scripting compatible string representation.java.lang.String
toString()
String representation of the ideal.-
Methods inherited from class edu.jas.application.IdealWithUniv
asListOfIdeals
-
-
-
-
Field Detail
-
can
public final java.util.List<java.util.List<Complex<RealAlgebraicNumber<D extends GcdRingElem<D> & Rational>>>> can
The list of complex algebraic roots.
-
droots
protected java.util.List<java.util.List<Complex<BigDecimal>>> droots
The list of decimal approximations of the complex algebraic roots.
-
-
Constructor Detail
-
IdealWithComplexAlgebraicRoots
protected IdealWithComplexAlgebraicRoots()
Constructor not for use.
-
IdealWithComplexAlgebraicRoots
public IdealWithComplexAlgebraicRoots(Ideal<D> id, java.util.List<GenPolynomial<D>> up, java.util.List<java.util.List<Complex<RealAlgebraicNumber<D>>>> cr)
Constructor.- Parameters:
id
- the idealup
- the list of univariate polynomialscr
- the list of complex algebraic roots
-
IdealWithComplexAlgebraicRoots
public IdealWithComplexAlgebraicRoots(IdealWithUniv<D> iu, java.util.List<java.util.List<Complex<RealAlgebraicNumber<D>>>> cr)
Constructor.- Parameters:
iu
- the ideal with univariate polynomialscr
- the list of real algebraic roots
-
-
Method Detail
-
toString
public java.lang.String toString()
String representation of the ideal.- Overrides:
toString
in classIdealWithUniv<D extends GcdRingElem<D> & Rational>
- See Also:
Object.toString()
-
toScript
public java.lang.String toScript()
Get a scripting compatible string representation.- Overrides:
toScript
in classIdealWithUniv<D extends GcdRingElem<D> & Rational>
- Returns:
- script compatible representation for this Element.
- See Also:
Element.toScript()
-
decimalApproximation
public java.util.List<java.util.List<Complex<BigDecimal>>> decimalApproximation()
Get decimal approximation of the complex root tuples.
-
doDecimalApproximation
public void doDecimalApproximation()
compute decimal approximation of the complex root tuples.
-
isDecimalApproximation
public boolean isDecimalApproximation()
Is decimal approximation of the complex roots.- Returns:
- true, if the decimal complex roots approximate the complex roots.
-
-