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>pelemPrimitive Element algebraic roots.java.util.List<AlgebraicNumber<C>>runitRoots 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 protectedAlgebraicRootsPrimElem()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.booleanequals(java.lang.Object b)Comparison with any other object.inthashCode()Hash code for this AlgebraicRootsPrimElem.java.lang.StringtoDecimalScript()Get a scripting compatible string representation.java.lang.StringtoScript()Get a scripting compatible string representation.java.lang.StringtoString()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:
toStringin classAlgebraicRoots<C extends GcdRingElem<C> & Rational>- See Also:
Object.toString()
-
toScript
public java.lang.String toScript()
Get a scripting compatible string representation.- Overrides:
toScriptin 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:
toDecimalScriptin classAlgebraicRoots<C extends GcdRingElem<C> & Rational>- Returns:
- script compatible representation for this Interval.
-
copy
public AlgebraicRootsPrimElem<C> copy()
Copy this.- Overrides:
copyin 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:
equalsin classAlgebraicRoots<C extends GcdRingElem<C> & Rational>- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
Hash code for this AlgebraicRootsPrimElem.- Overrides:
hashCodein classAlgebraicRoots<C extends GcdRingElem<C> & Rational>- See Also:
Object.hashCode()
-
-