public final class RealField extends java.lang.Object implements Field
Field.Member
Modifier and Type | Field and Description |
---|---|
static MathDouble |
E |
static MathDouble |
GAMMA |
static MathDouble |
INFINITY |
static MathDouble |
NaN |
static MathDouble |
ONE |
static MathDouble |
PI |
static MathDouble |
ZERO |
Modifier and Type | Method and Description |
---|---|
static RealField |
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.
|
public static final MathDouble ZERO
public static final MathDouble ONE
public static final MathDouble PI
public static final MathDouble E
public static final MathDouble GAMMA
public static final MathDouble INFINITY
public static final MathDouble NaN
public static final RealField getInstance()
public AbelianGroup.Member zero()
zero
in interface AbelianGroup
public boolean isZero(AbelianGroup.Member g)
isZero
in interface AbelianGroup
g
- a group memberpublic boolean isNegative(AbelianGroup.Member a, AbelianGroup.Member b)
isNegative
in interface AbelianGroup
a
- a group memberb
- a group memberpublic Ring.Member one()
public boolean isOne(Ring.Member r)
public boolean isInverse(Field.Member a, Field.Member b)