org.lsmp.djep.groupJep.values
Class FreeGroupElement
java.lang.Object
java.lang.Number
org.lsmp.djep.groupJep.values.Polynomial
org.lsmp.djep.groupJep.values.FreeGroupElement
- All Implemented Interfaces:
- Serializable, HasComplexValueI
- Direct Known Subclasses:
- AlgebraicExtensionElement
public class FreeGroupElement
- extends Polynomial
- implements HasComplexValueI
An element of a free group with one generator.
- Author:
- Rich Morris
Created on 09-Mar-2004
- See Also:
FreeGroup,
Serialized Form
|
Method Summary |
Complex |
getComplexValue()
Returns an approximation to the complex number representing this algebraic number. |
protected Polynomial |
valueOf(Number[] lcoeffs)
sub classes should overwrite this to make the correct type. |
| Methods inherited from class org.lsmp.djep.groupJep.values.Polynomial |
add, calculateComplexValue, calculateValue, div, doubleValue, equals, floatValue, getBaseRing, getCoeff, getCoeffs, getDegree, getSymbol, intValue, isConstantPoly, longValue, mul, pow, setCoeffs, sub, toString |
FreeGroupElement
public FreeGroupElement(FreeGroup K,
Number[] coeffs)
- An element of a free group with one generator.
- Parameters:
K - the free group.coeffs - array of coefficients for this element c0 + c1 t + ... + cn t^n
valueOf
protected Polynomial valueOf(Number[] lcoeffs)
- sub classes should overwrite this to make the correct type.
- Overrides:
valueOf in class Polynomial
getComplexValue
public Complex getComplexValue()
- Returns an approximation to the complex number representing this algebraic number.
This only gives meaningful results if setRootValue has been called
or if it is a quadratic extension (t^2+b t+c) or if it is a simple n-th root (t^n+a).
In the last two cases the root value is calculated automatically.
- Specified by:
getComplexValue in interface HasComplexValueI
- Returns:
- Complex(Nan) if currently unable to calculate it.
Copyright © 2014. All rights reserved.