NaN
, NegativeInfinity
, PositiveInfinity
, RationalBigInt
, RationalInt
, RealDoublePrecision
, RealSinglePrecision
public interface Num
Modifier and Type | Field | Description |
---|---|---|
static Num |
NaN |
|
static Num |
NEGATIVE_INFINITY |
|
static Num |
POSITIVE_INFINITY |
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) |
|
boolean |
eqZero() |
|
boolean |
geq(Num num) |
|
boolean |
geqZero() |
|
Num |
getEpsilon() |
|
static Num |
getFactory() |
|
Num |
getNaN() |
|
Num |
getNegativeInfinity() |
|
Num |
getPositiveInfinity() |
|
static Num |
getUtils() |
|
Num |
getZero() |
|
boolean |
gt(Num num) |
|
boolean |
gtZero() |
|
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) |
static final Num NaN
static final Num NEGATIVE_INFINITY
static final Num POSITIVE_INFINITY
static Num getFactory()
static Num getUtils()
double doubleValue()
boolean eq(double num)
boolean eqZero()
boolean gt(Num num)
boolean gtZero()
boolean geq(Num num)
boolean geqZero()
boolean lt(Num num)
boolean ltZero()
boolean leq(Num num)
boolean leqZero()
boolean isFinite()
boolean isInfinite()
boolean isNaN()
Num copy()
Num getPositiveInfinity()
Num createPositiveInfinity()
Num getNegativeInfinity()
Num createNegativeInfinity()
Num getNaN()
Num createNaN()
Num getZero()
Num createZero()
Num getEpsilon()
Num createEpsilon()
Num create(int num)
Num create(double value)
Num create(int num, int den)
Num create(java.lang.String num_str) throws java.lang.Exception
java.lang.Exception
boolean isFinite(Num num)
boolean isInfinite(Num num)
boolean isNaN(Num num)