org.lsmp.djep.groupJep.values
Class FreeGroupElement

java.lang.Object
  extended by java.lang.Number
      extended by org.lsmp.djep.groupJep.values.Polynomial
          extended by org.lsmp.djep.groupJep.values.FreeGroupElement
All Implemented Interfaces:
java.io.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

Constructor Summary
FreeGroupElement(FreeGroup K, java.lang.Number[] coeffs)
          An element of a free group with one generator.
 
Method Summary
 Complex getComplexValue()
          Returns an approximation to the complex number representing this algebraic number.
protected  Polynomial valueOf(java.lang.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
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FreeGroupElement

public FreeGroupElement(FreeGroup K,
                        java.lang.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
Method Detail

valueOf

protected Polynomial valueOf(java.lang.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.


http://www.singularsys.com/jep Copyright © 2007 Singular Systems