org.jscience.mathematics.algebraic.fields
Class ExactComplexField

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

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

The ExactComplexField class encapsulates the field of complex numbers.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jscience.mathematics.algebraic.fields.Field
Field.Member
 
Field Summary
static ExactComplex HALF
          DOCUMENT ME!
static ExactComplex HALF_I
          DOCUMENT ME!
static ExactComplex I
          DOCUMENT ME!
static ExactComplex MINUS_HALF
          DOCUMENT ME!
static ExactComplex MINUS_HALF_I
          DOCUMENT ME!
static ExactComplex MINUS_I
          DOCUMENT ME!
static ExactComplex MINUS_ONE
          DOCUMENT ME!
static ExactComplex MINUS_PI_2
          This is the value of -PI/2 rounded to that same number of digits as given by -Math.PI/2
static ExactComplex MINUS_PI_2_I
          This is the value of -PI/2 as imaginary rounded to that same number of digits as given by -Math.PI/2
static ExactComplex MINUS_SQRT_HALF_I
          DOCUMENT ME!
static ExactComplex MINUS_TWO
          DOCUMENT ME!
static ExactComplex ONE
          DOCUMENT ME!
static ExactComplex PI
          This is the value of PI rounded to that same number of digits as given by Math.PI
static ExactComplex PI_2
          This is the value of PI/2 rounded to that same number of digits as given by Math.PI/2
static ExactComplex PI_2_I
          This is the value of PI/2 as imaginary rounded to that same number of digits as given by Math.PI/2
static ExactComplex PI_I
          This is the value of PI as imaginary rounded to that same number of digits as given by Math.PI
static ExactComplex SQRT_HALF
          DOCUMENT ME!
static ExactComplex SQRT_HALF_I
          DOCUMENT ME!
static ExactComplex TWO
          DOCUMENT ME!
static ExactComplex ZERO
          DOCUMENT ME!
 
Method Summary
static ExactComplexField getInstance()
          Constructs a field of complex numbers.
 boolean isInverse(Field.Member a, Field.Member b)
          Returns true if one complex number is the inverse of the other.
 boolean isNegative(AbelianGroup.Member a, AbelianGroup.Member b)
          Returns true if one complex number is the negative of the other.
 boolean isOne(Ring.Member r)
          Returns true if the complex number is equal to one.
 boolean isZero(AbelianGroup.Member g)
          Returns true if the complex number is equal to zero.
 Ring.Member one()
          Returns the complex number one.
 AbelianGroup.Member zero()
          Returns the complex 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 ExactComplex ZERO
DOCUMENT ME!


I

public static final ExactComplex I
DOCUMENT ME!


ONE

public static final ExactComplex ONE
DOCUMENT ME!


MINUS_ONE

public static final ExactComplex MINUS_ONE
DOCUMENT ME!


MINUS_I

public static final ExactComplex MINUS_I
DOCUMENT ME!


HALF

public static final ExactComplex HALF
DOCUMENT ME!


MINUS_HALF

public static final ExactComplex MINUS_HALF
DOCUMENT ME!


HALF_I

public static final ExactComplex HALF_I
DOCUMENT ME!


MINUS_HALF_I

public static final ExactComplex MINUS_HALF_I
DOCUMENT ME!


TWO

public static final ExactComplex TWO
DOCUMENT ME!


MINUS_TWO

public static final ExactComplex MINUS_TWO
DOCUMENT ME!


SQRT_HALF

public static final ExactComplex SQRT_HALF
DOCUMENT ME!


SQRT_HALF_I

public static final ExactComplex SQRT_HALF_I
DOCUMENT ME!


MINUS_SQRT_HALF_I

public static final ExactComplex MINUS_SQRT_HALF_I
DOCUMENT ME!


PI

public static final ExactComplex PI
This is the value of PI rounded to that same number of digits as given by Math.PI


PI_I

public static final ExactComplex PI_I
This is the value of PI as imaginary rounded to that same number of digits as given by Math.PI


PI_2

public static final ExactComplex PI_2
This is the value of PI/2 rounded to that same number of digits as given by Math.PI/2


MINUS_PI_2

public static final ExactComplex MINUS_PI_2
This is the value of -PI/2 rounded to that same number of digits as given by -Math.PI/2


PI_2_I

public static final ExactComplex PI_2_I
This is the value of PI/2 as imaginary rounded to that same number of digits as given by Math.PI/2


MINUS_PI_2_I

public static final ExactComplex MINUS_PI_2_I
This is the value of -PI/2 as imaginary rounded to that same number of digits as given by -Math.PI/2

Method Detail

getInstance

public static final ExactComplexField getInstance()
Constructs a field of complex numbers. Singleton.

Returns:
DOCUMENT ME!

zero

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

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

isZero

public boolean isZero(AbelianGroup.Member g)
Returns true if the complex 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 complex 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 complex number one.

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

isOne

public boolean isOne(Ring.Member r)
Returns true if the complex 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 complex number is the inverse of the other.

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