org.jscience.mathematics.algebraic.fields
Class DoubleField

java.lang.Object
  extended by org.jscience.mathematics.algebraic.fields.DoubleField
All Implemented Interfaces:
Field, Ring, AbelianGroup

public final class DoubleField
extends java.lang.Object
implements Field

The DoubleField class encapsulates the field of real numbers.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jscience.mathematics.algebraic.fields.Field
Field.Member
 
Field Summary
static Double E
          DOCUMENT ME!
static Double GAMMA
          DOCUMENT ME!
static Double NaN
          DOCUMENT ME!
static Double NEGATIVE_INFINITY
          DOCUMENT ME!
static Double ONE
          DOCUMENT ME!
static Double PI
          DOCUMENT ME!
static Double POSITIVE_INFINITY
          DOCUMENT ME!
static Double ZERO
          DOCUMENT ME!
 
Method Summary
static DoubleField getInstance()
          Constructs a field of real numbers.
 boolean isInverse(Field.Member a, Field.Member b)
          Returns true if one real number is the inverse of the other.
 boolean isNegative(AbelianGroup.Member a, AbelianGroup.Member b)
          Returns true if one real number is the negative of the other.
 boolean isOne(Ring.Member r)
          Returns true if the real number is equal to one.
 boolean isZero(AbelianGroup.Member g)
          Returns true if the real number is equal to zero.
 Ring.Member one()
          Returns the real number one.
 AbelianGroup.Member zero()
          Returns the real number zero.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ZERO

public static final Double ZERO
DOCUMENT ME!


ONE

public static final Double ONE
DOCUMENT ME!


PI

public static final Double PI
DOCUMENT ME!


E

public static final Double E
DOCUMENT ME!


GAMMA

public static final Double GAMMA
DOCUMENT ME!


NEGATIVE_INFINITY

public static final Double NEGATIVE_INFINITY
DOCUMENT ME!


POSITIVE_INFINITY

public static final Double POSITIVE_INFINITY
DOCUMENT ME!


NaN

public static final Double NaN
DOCUMENT ME!

Method Detail

getInstance

public static final DoubleField getInstance()
Constructs a field of real numbers. Singleton.

Returns:
DOCUMENT ME!

zero

public AbelianGroup.Member zero()
Returns the real number zero.

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

isZero

public boolean isZero(AbelianGroup.Member g)
Returns true if the real number is equal to zero.

Specified by:
isZero in interface AbelianGroup
Parameters:
g - DOCUMENT ME!
Returns:
DOCUMENT ME!

isNegative

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

Specified by:
isNegative in interface AbelianGroup
Parameters:
a - DOCUMENT ME!
b - DOCUMENT ME!
Returns:
DOCUMENT ME!

one

public Ring.Member one()
Returns the real number one.

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

isOne

public boolean isOne(Ring.Member r)
Returns true if the real number is equal to one.

Specified by:
isOne in interface Ring
Parameters:
r - DOCUMENT ME!
Returns:
DOCUMENT ME!

isInverse

public boolean isInverse(Field.Member a,
                         Field.Member b)
Returns true if one real number is the inverse of the other.

Specified by:
isInverse in interface Field
Parameters:
a - DOCUMENT ME!
b - DOCUMENT ME!
Returns:
DOCUMENT ME!