org.lsmp.djep.groupJep.values
Class FreeGroupElement

java.lang.Object
  extended byjava.lang.Number
      extended byorg.lsmp.djep.groupJep.values.Polynomial
          extended byorg.lsmp.djep.groupJep.values.FreeGroupElement
All Implemented Interfaces:
HasComplexValueI, java.io.Serializable
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 aproximation to the complex number representing this algebraic number.
protected  Polynomial valueOf(java.lang.Number[] lcoeffs)
          sub classes should overright this to make the correct type.
 
Methods inherited from class org.lsmp.djep.groupJep.values.Polynomial
add, calculateComplexValue, doubleValue, equals, floatValue, getBaseRing, getCoeff, getCoeffs, getDegree, getSymbol, intValue, longValue, mul, 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:
coeffs - array of coeficients for this element c0 + c1 t + ... + cn t^n
Method Detail

valueOf

protected Polynomial valueOf(java.lang.Number[] lcoeffs)
sub classes should overright this to make the correct type.

Overrides:
valueOf in class Polynomial

getComplexValue

public Complex getComplexValue()
Returns an aproximation 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 I dont know how to calculate it.


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