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:
Serializable
public class RealRootTuple<C extends GcdRingElem<C> & Rational>
extends Object
implements Serializable
RealAlgebraicNumber root tuple.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal List
<RealAlgebraicNumber<C>> Tuple of RealAlgebraicNumbers. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(RealRootTuple<C> c) Contains a point.boolean
contains
(List<RealAlgebraicNumber<C>> c) Contains a point.copy()
Copy this.Decimal approximation of each coordinate.boolean
Comparison with any other object.Rational approximation of each coordinate.int
hashCode()
Hash code for this Rectangle.Random point of real root tuple.Rational Length.void
refineRoot
(BigRational eps) Refine root isolating intervals.int
signum()
Signum.toScript()
Get a scripting compatible string representation.toString()
String representation of tuple.
-
Field Details
-
tuple
Tuple of RealAlgebraicNumbers.
-
-
Constructor Details
-
RealRootTuple
Constructor.- Parameters:
t
- list of roots.
-
-
Method Details
-
toString
String representation of tuple. -
toScript
Get a scripting compatible string representation.- Returns:
- script compatible representation for this Rectangle.
-
contains
Contains a point.- Parameters:
c
- real root tuple representing a point.- Returns:
- true if c is contained in this root tuple, else false.
-
contains
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
Random point of real root tuple.- Returns:
- a random point contained in this real root tuple.
-
refineRoot
Refine root isolating intervals.- Parameters:
eps
- desired interval length.
-
copy
Copy this.- Returns:
- a copy of this.
-
equals
Comparison with any other object. -
hashCode
public int hashCode()Hash code for this Rectangle. -
getRational
Rational approximation of each coordinate.- Returns:
- list of coordinate points.
-
decimalMagnitude
Decimal approximation of each coordinate.- Returns:
- list of coordinate points.
-
rationalLength
Rational Length.- Returns:
- max |v_i|;
-
signum
public int signum()Signum.- Returns:
- ?;
-