C - coefficient type.public class RealRootTuple<C extends GcdRingElem<C> & Rational> extends java.lang.Object implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
java.util.List<RealAlgebraicNumber<C>> |
tuple
Tuple of RealAlgebraicNumbers.
|
| Constructor and Description |
|---|
RealRootTuple(java.util.List<RealAlgebraicNumber<C>> t)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(java.util.List<RealAlgebraicNumber<C>> c)
Contains a point.
|
boolean |
contains(RealRootTuple<C> c)
Contains a point.
|
RealRootTuple<C> |
copy()
Copy this.
|
java.util.List<BigDecimal> |
decimalMagnitude()
Decimal approximation of each coordinate.
|
boolean |
equals(java.lang.Object b)
Comparison with any other object.
|
java.util.List<BigRational> |
getRational()
Rational approximation of each coordinate.
|
int |
hashCode()
Hash code for this Rectangle.
|
java.util.List<C> |
randomPoint()
Random point of real root tuple.
|
BigRational |
rationalLength()
Rational Length.
|
void |
refineRoot(BigRational eps)
Refine root isolating intervals.
|
int |
signum()
Signum.
|
java.lang.String |
toScript()
Get a scripting compatible string representation.
|
java.lang.String |
toString()
String representation of tuple.
|
public final java.util.List<RealAlgebraicNumber<C extends GcdRingElem<C> & Rational>> tuple
public RealRootTuple(java.util.List<RealAlgebraicNumber<C>> t)
t - list of roots.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.lang.String toScript()
public boolean contains(RealRootTuple<C> c)
c - real root tuple representing a point.public boolean contains(java.util.List<RealAlgebraicNumber<C>> c)
c - list of real algebraic numbers representing a point.public java.util.List<C> randomPoint()
public void refineRoot(BigRational eps)
eps - desired interval length.public RealRootTuple<C> copy()
public boolean equals(java.lang.Object b)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public java.util.List<BigRational> getRational()
public java.util.List<BigDecimal> decimalMagnitude()
public BigRational rationalLength()
public int signum()