edu.jas.application
Class IdealWithRealAlgebraicRoots<C extends RingElem<C> & Rational,D extends GcdRingElem<D> & Rational>

java.lang.Object
  extended by edu.jas.application.IdealWithUniv<D>
      extended by edu.jas.application.IdealWithRealAlgebraicRoots<C,D>
All Implemented Interfaces:
java.io.Serializable

public class IdealWithRealAlgebraicRoots<C extends RingElem<C> & Rational,D extends GcdRingElem<D> & Rational>
extends IdealWithUniv<D>
implements java.io.Serializable

Container for Ideals together with univariate polynomials and real algebraic roots.

Author:
Heinz Kredel
See Also:
Serialized Form

Field Summary
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
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
 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.
 java.lang.String toScript()
          Get a scripting compatible string representation.
 java.lang.String toString()
          String representation of the ideal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 ideal
up - the list of univaraite polynomials
rr - 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 polynomials
rr - the list of real algebraic roots
Method Detail

toString

public java.lang.String toString()
String representation of the ideal.

Overrides:
toString in class IdealWithUniv<D extends GcdRingElem<D> & Rational>
See Also:
Object.toString()

toScript

public java.lang.String toScript()
Get a scripting compatible string representation.

Overrides:
toScript in class IdealWithUniv<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.