Package edu.jas.application
Class IdealWithRealAlgebraicRoots<D extends GcdRingElem<D> & Rational>
- java.lang.Object
-
- edu.jas.application.IdealWithUniv<D>
-
- edu.jas.application.IdealWithRealAlgebraicRoots<D>
-
- All Implemented Interfaces:
java.io.Serializable
public class IdealWithRealAlgebraicRoots<D extends GcdRingElem<D> & Rational> extends IdealWithUniv<D>
Container for Ideals together with univariate polynomials and real algebraic roots.- Author:
- Heinz Kredel
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.util.List<BigDecimal>>
droots
The list of decimal approximations of the real algebraic roots.java.util.List<java.util.List<RealAlgebraicNumber<D>>>
ran
The list of real algebraic roots.-
Fields inherited from class edu.jas.application.IdealWithUniv
ideal, others, upolys
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
IdealWithRealAlgebraicRoots()
Constructor not for use.IdealWithRealAlgebraicRoots(Ideal<D> id, java.util.List<GenPolynomial<D>> up, java.util.List<java.util.List<RealAlgebraicNumber<D>>> rr)
Constructor.IdealWithRealAlgebraicRoots(IdealWithUniv<D> iu, java.util.List<java.util.List<RealAlgebraicNumber<D>>> rr)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.util.List<BigDecimal>>
decimalApproximation()
Get decimal approximation of the real root tuples.void
doDecimalApproximation()
compute decimal approximation of the real root tuples.boolean
isDecimalApproximation()
Is decimal approximation of the real 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
-
ran
public final java.util.List<java.util.List<RealAlgebraicNumber<D extends GcdRingElem<D> & Rational>>> ran
The list of real algebraic roots.
-
droots
protected java.util.List<java.util.List<BigDecimal>> droots
The list of decimal approximations of the real algebraic roots.
-
-
Constructor Detail
-
IdealWithRealAlgebraicRoots
protected IdealWithRealAlgebraicRoots()
Constructor not for use.
-
IdealWithRealAlgebraicRoots
public IdealWithRealAlgebraicRoots(Ideal<D> id, java.util.List<GenPolynomial<D>> up, java.util.List<java.util.List<RealAlgebraicNumber<D>>> rr)
Constructor.- Parameters:
id
- the idealup
- the list of univaraite polynomialsrr
- the list of real algebraic roots
-
IdealWithRealAlgebraicRoots
public IdealWithRealAlgebraicRoots(IdealWithUniv<D> iu, java.util.List<java.util.List<RealAlgebraicNumber<D>>> rr)
Constructor.- Parameters:
iu
- the ideal with univariate polynomialsrr
- 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<BigDecimal>> decimalApproximation()
Get decimal approximation of the real root tuples.
-
doDecimalApproximation
public void doDecimalApproximation()
compute decimal approximation of the real root tuples.
-
isDecimalApproximation
public boolean isDecimalApproximation()
Is decimal approximation of the real roots.- Returns:
- true, if the decimal real roots approximate the real roots.
-
-