Modifier and Type | Field | Description |
---|---|---|
private static boolean |
comparison_epsilon |
|
private Num |
EPSILON |
|
private static float |
EPSILON_Float |
|
private static RealSinglePrecision |
instance |
|
private Num |
NaN |
|
private Num |
NEGATIVE_INFINITY |
|
private Num |
POSITIVE_INFINITY |
|
private float |
value |
|
private Num |
ZERO |
Modifier | Constructor | Description |
---|---|---|
private |
RealSinglePrecision() |
|
|
RealSinglePrecision(double value) |
|
|
RealSinglePrecision(int num) |
|
|
RealSinglePrecision(int num,
int den) |
|
|
RealSinglePrecision(RealSinglePrecision num) |
Modifier and Type | Method | Description |
---|---|---|
Num |
abs(Num num) |
|
Num |
add(Num num1,
Num num2) |
|
Num |
copy() |
|
Num |
create(double value) |
|
Num |
create(int num) |
|
Num |
create(int num,
int den) |
|
Num |
create(java.lang.String num_str) |
|
Num |
createEpsilon() |
|
Num |
createNaN() |
|
Num |
createNegativeInfinity() |
|
Num |
createPositiveInfinity() |
|
Num |
createZero() |
|
Num |
diff(Num num1,
Num num2) |
|
Num |
div(Num num1,
Num num2) |
|
double |
doubleValue() |
|
boolean |
eq(double num) |
|
private boolean |
equals(float num) |
|
boolean |
equals(RealSinglePrecision num) |
|
boolean |
equals(java.lang.Object obj) |
|
boolean |
eqZero() |
|
boolean |
geq(Num num) |
|
boolean |
geqZero() |
|
Num |
getEpsilon() |
|
static RealSinglePrecision |
getInstance() |
|
Num |
getNaN() |
|
Num |
getNegativeInfinity() |
|
Num |
getPositiveInfinity() |
|
Num |
getZero() |
|
boolean |
gt(Num num) |
|
boolean |
gtZero() |
|
int |
hashCode() |
|
boolean |
isFinite() |
|
boolean |
isFinite(Num num) |
|
boolean |
isInfinite() |
|
boolean |
isInfinite(Num num) |
|
boolean |
isNaN() |
|
boolean |
isNaN(Num num) |
|
boolean |
leq(Num num) |
|
boolean |
leqZero() |
|
boolean |
lt(Num num) |
|
boolean |
ltZero() |
|
Num |
max(Num num1,
Num num2) |
|
Num |
min(Num num1,
Num num2) |
|
Num |
mult(Num num1,
Num num2) |
|
Num |
negate(Num num) |
|
Num |
sub(Num num1,
Num num2) |
|
java.lang.String |
toString() |
getFactory, getUtils
private static final float EPSILON_Float
private static RealSinglePrecision instance
private static boolean comparison_epsilon
private float value
private Num POSITIVE_INFINITY
private Num NEGATIVE_INFINITY
private Num NaN
private Num ZERO
private Num EPSILON
private RealSinglePrecision()
public RealSinglePrecision(int num)
public RealSinglePrecision(double value)
public RealSinglePrecision(int num, int den)
public RealSinglePrecision(RealSinglePrecision num)
public static RealSinglePrecision getInstance()
public boolean isInfinite()
isInfinite
in interface Num
public double doubleValue()
doubleValue
in interface Num
public boolean equals(RealSinglePrecision num)
private boolean equals(float num)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public Num getPositiveInfinity()
getPositiveInfinity
in interface Num
public Num createPositiveInfinity()
createPositiveInfinity
in interface Num
public Num getNegativeInfinity()
getNegativeInfinity
in interface Num
public Num createNegativeInfinity()
createNegativeInfinity
in interface Num
public Num createZero()
createZero
in interface Num
public Num getEpsilon()
getEpsilon
in interface Num
public Num createEpsilon()
createEpsilon
in interface Num
public Num create(java.lang.String num_str) throws java.lang.Exception
public boolean isInfinite(Num num)
isInfinite
in interface Num