Package edu.jas.application
Class AlgebraicRootsPrimElem<C extends GcdRingElem<C> & Rational>
- java.lang.Object
-
- edu.jas.root.AlgebraicRoots<C>
-
- edu.jas.application.AlgebraicRootsPrimElem<C>
-
- Type Parameters:
C
- coefficient type.
- All Implemented Interfaces:
java.io.Serializable
public class AlgebraicRootsPrimElem<C extends GcdRingElem<C> & Rational> extends AlgebraicRoots<C> implements java.io.Serializable
Container for the real and complex algebraic roots of a univariate polynomial together with primitive element.- Author:
- Heinz Kredel
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description PrimitiveElement<C>
pelem
Primitive Element algebraic roots.java.util.List<AlgebraicNumber<C>>
runit
Roots of unity of primitive element origin representations.-
Fields inherited from class edu.jas.root.AlgebraicRoots
complex, cp, p, real
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AlgebraicRootsPrimElem()
Constructor not for use.AlgebraicRootsPrimElem(GenPolynomial<C> p, GenPolynomial<Complex<C>> cp, java.util.List<RealAlgebraicNumber<C>> r, java.util.List<ComplexAlgebraicNumber<C>> c, PrimitiveElement<C> pe, java.util.List<AlgebraicNumber<C>> ru)
Constructor.AlgebraicRootsPrimElem(AlgebraicRoots<C> ar, PrimitiveElement<C> pe)
Constructor.AlgebraicRootsPrimElem(AlgebraicRoots<C> ar, PrimitiveElement<C> pe, java.util.List<AlgebraicNumber<C>> ru)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AlgebraicRootsPrimElem<C>
copy()
Copy this.boolean
equals(java.lang.Object b)
Comparison with any other object.int
hashCode()
Hash code for this AlgebraicRootsPrimElem.java.lang.String
toDecimalScript()
Get a scripting compatible string representation.java.lang.String
toScript()
Get a scripting compatible string representation.java.lang.String
toString()
String representation of AlgebraicRootsPrimElem.-
Methods inherited from class edu.jas.root.AlgebraicRoots
getAlgebraicRing
-
-
-
-
Field Detail
-
pelem
public final PrimitiveElement<C extends GcdRingElem<C> & Rational> pelem
Primitive Element algebraic roots.
-
runit
public final java.util.List<AlgebraicNumber<C extends GcdRingElem<C> & Rational>> runit
Roots of unity of primitive element origin representations.
-
-
Constructor Detail
-
AlgebraicRootsPrimElem
protected AlgebraicRootsPrimElem()
Constructor not for use.
-
AlgebraicRootsPrimElem
public AlgebraicRootsPrimElem(GenPolynomial<C> p, GenPolynomial<Complex<C>> cp, java.util.List<RealAlgebraicNumber<C>> r, java.util.List<ComplexAlgebraicNumber<C>> c, PrimitiveElement<C> pe, java.util.List<AlgebraicNumber<C>> ru)
Constructor.- Parameters:
p
- univariate polynomialcp
- univariate polynomial with compelx coefficientsr
- list of real algebraic rootsc
- list of complex algebraic rootspe
- primitive elementru
- roots of unity of primitive element origin representations
-
AlgebraicRootsPrimElem
public AlgebraicRootsPrimElem(AlgebraicRoots<C> ar, PrimitiveElement<C> pe)
Constructor.- Parameters:
ar
- algebraic roots containerpe
- primitive element
-
AlgebraicRootsPrimElem
public AlgebraicRootsPrimElem(AlgebraicRoots<C> ar, PrimitiveElement<C> pe, java.util.List<AlgebraicNumber<C>> ru)
Constructor.- Parameters:
ar
- algebraic roots containerpe
- primitive elementru
- roots of unity of primitive element origin representations
-
-
Method Detail
-
toString
public java.lang.String toString()
String representation of AlgebraicRootsPrimElem.- Overrides:
toString
in classAlgebraicRoots<C extends GcdRingElem<C> & Rational>
- See Also:
Object.toString()
-
toScript
public java.lang.String toScript()
Get a scripting compatible string representation.- Overrides:
toScript
in classAlgebraicRoots<C extends GcdRingElem<C> & Rational>
- Returns:
- script compatible representation for this Interval.
-
toDecimalScript
public java.lang.String toDecimalScript()
Get a scripting compatible string representation.- Overrides:
toDecimalScript
in classAlgebraicRoots<C extends GcdRingElem<C> & Rational>
- Returns:
- script compatible representation for this Interval.
-
copy
public AlgebraicRootsPrimElem<C> copy()
Copy this.- Overrides:
copy
in classAlgebraicRoots<C extends GcdRingElem<C> & Rational>
- Returns:
- a copy of this.
-
equals
public boolean equals(java.lang.Object b)
Comparison with any other object.- Overrides:
equals
in classAlgebraicRoots<C extends GcdRingElem<C> & Rational>
- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
Hash code for this AlgebraicRootsPrimElem.- Overrides:
hashCode
in classAlgebraicRoots<C extends GcdRingElem<C> & Rational>
- See Also:
Object.hashCode()
-
-