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 Details

  • Constructor Details

  • Method Details

    • toString

      public String toString()
      String representation of tuple.
      Overrides:
      toString in class Object
      See Also:
    • toScript

      public 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(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 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(Object b)
      Comparison with any other object.
      Overrides:
      equals in class Object
      See Also:
    • hashCode

      public int hashCode()
      Hash code for this Rectangle.
      Overrides:
      hashCode in class Object
      See Also:
    • getRational

      public List<BigRational> getRational()
      Rational approximation of each coordinate.
      Returns:
      list of coordinate points.
    • decimalMagnitude

      public 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:
      ?;