org.jscience.mathematics.algebraic.fields
Class ComplexField

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

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

The ComplexField 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 Complex HALF
          DOCUMENT ME!
static Complex HALF_I
          DOCUMENT ME!
static Complex I
          DOCUMENT ME!
static Complex MINUS_HALF
          DOCUMENT ME!
static Complex MINUS_HALF_I
          DOCUMENT ME!
static Complex MINUS_I
          DOCUMENT ME!
static Complex MINUS_ONE
          DOCUMENT ME!
static Complex MINUS_PI_2
          This is the value of -PI/2 rounded to that same number of digits as given by -Math.PI/2
static Complex 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 Complex MINUS_SQRT_HALF_I
          DOCUMENT ME!
static Complex MINUS_TWO
          DOCUMENT ME!
static Complex ONE
          DOCUMENT ME!
static Complex PI
          This is the value of PI rounded to that same number of digits as given by Math.PI
static Complex PI_2
          This is the value of PI/2 rounded to that same number of digits as given by Math.PI/2
static Complex 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 Complex PI_I
          This is the value of PI as imaginary rounded to that same number of digits as given by Math.PI
static Complex SQRT_HALF
          DOCUMENT ME!
static Complex SQRT_HALF_I
          DOCUMENT ME!
static Complex TWO
          DOCUMENT ME!
static Complex ZERO
          DOCUMENT ME!
 
Method Summary
static ComplexField 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 Complex ZERO
DOCUMENT ME!


I

public static final Complex I
DOCUMENT ME!


ONE

public static final Complex ONE
DOCUMENT ME!


MINUS_ONE

public static final Complex MINUS_ONE
DOCUMENT ME!


MINUS_I

public static final Complex MINUS_I
DOCUMENT ME!


HALF

public static final Complex HALF
DOCUMENT ME!


MINUS_HALF

public static final Complex MINUS_HALF
DOCUMENT ME!


HALF_I

public static final Complex HALF_I
DOCUMENT ME!


MINUS_HALF_I

public static final Complex MINUS_HALF_I
DOCUMENT ME!


TWO

public static final Complex TWO
DOCUMENT ME!


MINUS_TWO

public static final Complex MINUS_TWO
DOCUMENT ME!


SQRT_HALF

public static final Complex SQRT_HALF
DOCUMENT ME!


SQRT_HALF_I

public static final Complex SQRT_HALF_I
DOCUMENT ME!


MINUS_SQRT_HALF_I

public static final Complex MINUS_SQRT_HALF_I
DOCUMENT ME!


PI

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


PI_I

public static final Complex 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 Complex 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 Complex 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 Complex 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 Complex 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 ComplexField 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!