edu.jas.root
Class RealRootTuple<C extends GcdRingElem<C> & Rational>

java.lang.Object
  extended by edu.jas.root.RealRootTuple<C>
Type Parameters:
C - coefficient type.

public class RealRootTuple<C extends GcdRingElem<C> & Rational>
extends java.lang.Object

RealAlgebraicNumber root tuple.

Author:
Heinz Kredel

Field Summary
 java.util.List<RealAlgebraicNumber<C>> tuple
          Tuple of RealAlgebraicNumbers.
 
Constructor Summary
RealRootTuple(java.util.List<RealAlgebraicNumber<C>> t)
          Constructor.
 
Method Summary
 RealRootTuple<C> clone()
          Clone 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.
 BigRational rationalLength()
          Rational Length.
 int signum()
          Signum.
 java.lang.String toScript()
          Get a scripting compatible string representation.
 java.lang.String toString()
          String representation of tuple.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

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:
toString in class java.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.

clone

public RealRootTuple<C> clone()
Clone this.

Overrides:
clone in class java.lang.Object
See Also:
Object.clone()

equals

public boolean equals(java.lang.Object b)
Comparison with any other object.

Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Hash code for this Rectangle.

Overrides:
hashCode in class java.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:
?;