jsci.maths.fields
Class RealField
- java.lang.Object
-
- jsci.maths.fields.RealField
-
- All Implemented Interfaces:
- Field, Ring, AbelianGroup
public final class RealField extends java.lang.Object implements Field
The RealField class encapsulates the field of real 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 MathDoubleEstatic MathDoubleGAMMAstatic MathDoubleINFINITYstatic MathDoubleNaNstatic MathDoubleONEstatic MathDoublePIstatic MathDoubleZERO
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static RealFieldgetInstance()Constructs a field of real numbers.booleanisInverse(Field.Member a, Field.Member b)Returns true if one real number is the inverse of the other.booleanisNegative(AbelianGroup.Member a, AbelianGroup.Member b)Returns true if one real number is the negative of the other.booleanisOne(Ring.Member r)Returns true if the real number is equal to one.booleanisZero(AbelianGroup.Member g)Returns true if the real number is equal to zero.Ring.Memberone()Returns the real number one.AbelianGroup.Memberzero()Returns the real number zero.
-
-
-
Field Detail
-
ZERO
public static final MathDouble ZERO
-
ONE
public static final MathDouble ONE
-
PI
public static final MathDouble PI
-
E
public static final MathDouble E
-
GAMMA
public static final MathDouble GAMMA
-
INFINITY
public static final MathDouble INFINITY
-
NaN
public static final MathDouble NaN
-
-
Method Detail
-
getInstance
public static final RealField getInstance()
Constructs a field of real numbers. Singleton.
-
zero
public AbelianGroup.Member zero()
Returns the real number zero.- Specified by:
zeroin interfaceAbelianGroup
-
isZero
public boolean isZero(AbelianGroup.Member g)
Returns true if the real 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 real 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 real number one.
-
isOne
public boolean isOne(Ring.Member r)
Returns true if the real number is equal to one.
-
isInverse
public boolean isInverse(Field.Member a, Field.Member b)
Returns true if one real number is the inverse of the other.
-
-
DMelt 3.0 © DataMelt by jWork.ORG