org.jscience.mathematics.analysis.polynomials
Class DoublePolynomialRing

java.lang.Object
  extended by org.jscience.mathematics.analysis.polynomials.DoublePolynomialRing
All Implemented Interfaces:
Ring, AbelianGroup

public class DoublePolynomialRing
extends java.lang.Object
implements Ring

DOCUMENT ME!


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jscience.mathematics.algebraic.fields.Ring
Ring.Member
 
Field Summary
static DoublePolynomial ONE
          DOCUMENT ME!
static DoublePolynomial ZERO
          DOCUMENT ME!
 
Constructor Summary
protected DoublePolynomialRing()
          Creates a new instance of PolynomialRing
 
Method Summary
static DoublePolynomialRing getInstance()
          Singleton.
 boolean isNegative(AbelianGroup.Member a, AbelianGroup.Member b)
          Returns true if one member is the negative of the other.
 boolean isOne(Ring.Member r)
          Returns true if the member is the unit element.
 boolean isZero(AbelianGroup.Member g)
          Returns true if the member is the identity element of this group.
 Ring.Member one()
          Returns the unit element.
protected static Double[] toDouble(double[] d)
          internal method for safe typecast
protected static double[] toDouble(Field.Member[] f)
          internal method for safe typecast
 AbelianGroup.Member zero()
          Returns the identity element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ZERO

public static final DoublePolynomial ZERO
DOCUMENT ME!


ONE

public static final DoublePolynomial ONE
DOCUMENT ME!

Constructor Detail

DoublePolynomialRing

protected DoublePolynomialRing()
Creates a new instance of PolynomialRing

Method Detail

getInstance

public static final DoublePolynomialRing getInstance()
Singleton.

Returns:
DOCUMENT ME!

isNegative

public boolean isNegative(AbelianGroup.Member a,
                          AbelianGroup.Member b)
Returns true if one member is the negative of the other.

Specified by:
isNegative in interface AbelianGroup
Parameters:
a - a group member
b - a group member
Returns:
DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

isOne

public boolean isOne(Ring.Member r)
Returns true if the member is the unit element.

Specified by:
isOne in interface Ring
Parameters:
r - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

isZero

public boolean isZero(AbelianGroup.Member g)
Returns true if the member is the identity element of this group.

Specified by:
isZero in interface AbelianGroup
Parameters:
g - a group member
Returns:
DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

one

public Ring.Member one()
Returns the unit element.

Specified by:
one in interface Ring
Returns:
DOCUMENT ME!

zero

public AbelianGroup.Member zero()
Returns the identity element.

Specified by:
zero in interface AbelianGroup
Returns:
DOCUMENT ME!

toDouble

protected static double[] toDouble(Field.Member[] f)
internal method for safe typecast

Parameters:
f - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

toDouble

protected static Double[] toDouble(double[] d)
internal method for safe typecast

Parameters:
d - DOCUMENT ME!
Returns:
DOCUMENT ME!