Package edu.jas.root
Class RealRootTuple<C extends GcdRingElem<C> & Rational>
- java.lang.Object
-
- edu.jas.root.RealRootTuple<C>
-
- Type Parameters:
C- coefficient type.
- All Implemented Interfaces:
java.io.Serializable
public class RealRootTuple<C extends GcdRingElem<C> & Rational> extends java.lang.Object implements java.io.Serializable
RealAlgebraicNumber root tuple.- Author:
- Heinz Kredel
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<RealAlgebraicNumber<C>>tupleTuple of RealAlgebraicNumbers.
-
Constructor Summary
Constructors Constructor Description RealRootTuple(java.util.List<RealAlgebraicNumber<C>> t)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(RealRootTuple<C> c)Contains a point.booleancontains(java.util.List<RealAlgebraicNumber<C>> c)Contains a point.RealRootTuple<C>copy()Copy this.java.util.List<BigDecimal>decimalMagnitude()Decimal approximation of each coordinate.booleanequals(java.lang.Object b)Comparison with any other object.java.util.List<BigRational>getRational()Rational approximation of each coordinate.inthashCode()Hash code for this Rectangle.java.util.List<C>randomPoint()Random point of real root tuple.BigRationalrationalLength()Rational Length.voidrefineRoot(BigRational eps)Refine root isolating intervals.intsignum()Signum.java.lang.StringtoScript()Get a scripting compatible string representation.java.lang.StringtoString()String representation of tuple.
-
-
-
Field Detail
-
tuple
public final java.util.List<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>> tuple
Tuple of RealAlgebraicNumbers.
-
-
Constructor Detail
-
RealRootTuple
public RealRootTuple(java.util.List<RealAlgebraicNumber<C>> t)
Constructor.- Parameters:
t- list of roots.
-
-
Method Detail
-
toString
public java.lang.String toString()
String representation of tuple.- Overrides:
toStringin classjava.lang.Object- See Also:
Object.toString()
-
toScript
public java.lang.String toScript()
Get a scripting compatible string representation.- Returns:
- script compatible representation for this Rectangle.
-
contains
public boolean contains(RealRootTuple<C> c)
Contains a point.- Parameters:
c- real root tuple representing a point.- Returns:
- true if c is contained in this root tuple, else false.
-
contains
public boolean contains(java.util.List<RealAlgebraicNumber<C>> c)
Contains a point.- Parameters:
c- list of real algebraic numbers representing a point.- Returns:
- true if c is contained in this root tuple, else false.
-
randomPoint
public java.util.List<C> randomPoint()
Random point of real root tuple.- Returns:
- a random point contained in this real root tuple.
-
refineRoot
public void refineRoot(BigRational eps)
Refine root isolating intervals.- Parameters:
eps- desired interval length.
-
copy
public RealRootTuple<C> copy()
Copy this.- Returns:
- a copy of this.
-
equals
public boolean equals(java.lang.Object b)
Comparison with any other object.- Overrides:
equalsin classjava.lang.Object- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
Hash code for this Rectangle.- Overrides:
hashCodein classjava.lang.Object- See Also:
Object.hashCode()
-
getRational
public java.util.List<BigRational> getRational()
Rational approximation of each coordinate.- Returns:
- list of coordinate points.
-
decimalMagnitude
public java.util.List<BigDecimal> decimalMagnitude()
Decimal approximation of each coordinate.- Returns:
- list of coordinate points.
-
rationalLength
public BigRational rationalLength()
Rational Length.- Returns:
- max |v_i|;
-
signum
public int signum()
Signum.- Returns:
- ?;
-
-