jsci.maths.fields
Class ComplexField
- java.lang.Object
-
- jsci.maths.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 jsci.maths.fields.Field
Field.Member
-
-
Field Summary
Fields Modifier and Type Field and Description static ComplexHALFstatic ComplexHALF_Istatic ComplexIstatic ComplexMINUS_HALFstatic ComplexMINUS_HALF_Istatic ComplexMINUS_Istatic ComplexMINUS_ONEstatic ComplexMINUS_PI_2static ComplexMINUS_PI_2_Istatic ComplexMINUS_SQRT_HALF_Istatic ComplexMINUS_TWOstatic ComplexONEstatic ComplexPIstatic ComplexPI_2static ComplexPI_2_Istatic ComplexPI_Istatic ComplexSQRT_HALFstatic ComplexSQRT_HALF_Istatic ComplexTWOstatic ComplexZERO
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static ComplexFieldgetInstance()Constructs a field of complex numbers.booleanisInverse(Field.Member a, Field.Member b)Returns true if one complex number is the inverse of the other.booleanisNegative(AbelianGroup.Member a, AbelianGroup.Member b)Returns true if one complex number is the negative of the other.booleanisOne(Ring.Member r)Returns true if the complex number is equal to one.booleanisZero(AbelianGroup.Member g)Returns true if the complex number is equal to zero.Ring.Memberone()Returns the complex number one.AbelianGroup.Memberzero()Returns the complex number zero.
-
-
-
Field Detail
-
ZERO
public static final Complex ZERO
-
I
public static final Complex I
-
ONE
public static final Complex ONE
-
MINUS_ONE
public static final Complex MINUS_ONE
-
MINUS_I
public static final Complex MINUS_I
-
HALF
public static final Complex HALF
-
MINUS_HALF
public static final Complex MINUS_HALF
-
HALF_I
public static final Complex HALF_I
-
MINUS_HALF_I
public static final Complex MINUS_HALF_I
-
TWO
public static final Complex TWO
-
MINUS_TWO
public static final Complex MINUS_TWO
-
SQRT_HALF
public static final Complex SQRT_HALF
-
SQRT_HALF_I
public static final Complex SQRT_HALF_I
-
MINUS_SQRT_HALF_I
public static final Complex MINUS_SQRT_HALF_I
-
PI
public static final Complex PI
-
PI_I
public static final Complex PI_I
-
PI_2
public static final Complex PI_2
-
MINUS_PI_2
public static final Complex MINUS_PI_2
-
PI_2_I
public static final Complex PI_2_I
-
MINUS_PI_2_I
public static final Complex MINUS_PI_2_I
-
-
Method Detail
-
getInstance
public static final ComplexField getInstance()
Constructs a field of complex numbers. Singleton.
-
zero
public AbelianGroup.Member zero()
Returns the complex number zero.- Specified by:
zeroin interfaceAbelianGroup
-
isZero
public boolean isZero(AbelianGroup.Member g)
Returns true if the complex number is equal to zero.- Specified by:
isZeroin interfaceAbelianGroup- Parameters:
g- a group member
-
isNegative
public boolean isNegative(AbelianGroup.Member a, AbelianGroup.Member b)
Returns true if one complex number is the negative of the other.- Specified by:
isNegativein interfaceAbelianGroup- Parameters:
a- a group memberb- a group member
-
one
public Ring.Member one()
Returns the complex number one.
-
isOne
public boolean isOne(Ring.Member r)
Returns true if the complex number is equal to one.
-
isInverse
public boolean isInverse(Field.Member a, Field.Member b)
Returns true if one complex number is the inverse of the other.
-
-
DMelt 3.0 © DataMelt by jWork.ORG