| Package | Description |
|---|---|
| org.jscience.mathematics.number |
Provides common types of numbers most of them implementing the
field interface. |
| Modifier and Type | Field and Description |
|---|---|
static FloatingPoint |
FloatingPoint.NaN
The Not-a-Number instance (unique).
|
static FloatingPoint |
FloatingPoint.ONE
The floating point instance representing the multiplicative identity.
|
static FloatingPoint |
FloatingPoint.ZERO
The floating point instance representing the additive identity.
|
| Modifier and Type | Method and Description |
|---|---|
FloatingPoint |
FloatingPoint.abs()
Returns the absolute value of this floating point number.
|
FloatingPoint |
FloatingPoint.copy() |
FloatingPoint |
FloatingPoint.divide(FloatingPoint that)
Returns this floating point number divided by the one specified.
|
FloatingPoint |
FloatingPoint.inverse()
Returns the inverse of this floating point number.
|
FloatingPoint |
FloatingPoint.minus(FloatingPoint that)
Returns the difference between this FloatingPoint number and the one
specified.
|
FloatingPoint |
FloatingPoint.opposite()
Returns the opposite of this floating point number.
|
FloatingPoint |
FloatingPoint.plus(FloatingPoint that)
Returns the sum of this floating point number with the one specified.
|
FloatingPoint |
FloatingPoint.sqrt()
Returns the square root of this floating point number.
|
FloatingPoint |
FloatingPoint.times(FloatingPoint that)
Returns the product of this floating point number with the one specified.
|
FloatingPoint |
FloatingPoint.times(long multiplier)
Returns the product of this floating point number with the specified
long multiplier. |
static FloatingPoint |
FloatingPoint.valueOf(CharSequence chars)
Returns the floating point number for the specified character sequence.
|
static FloatingPoint |
FloatingPoint.valueOf(double doubleValue)
Returns the floating point number for the specified
double
value (convenience method). |
static FloatingPoint |
FloatingPoint.valueOf(LargeInteger significand,
int exponent)
Returns the floating point number for the specified
LargeInteger significand and power of two exponent. |
static FloatingPoint |
FloatingPoint.valueOf(long longValue)
Returns the floating point number for the specified
long
value (convenience method). |
static FloatingPoint |
FloatingPoint.valueOf(long significand,
int exponent)
Returns the floating point number for the specified
long
significand and power of two exponent (convenience method). |
| Modifier and Type | Method and Description |
|---|---|
int |
FloatingPoint.compareTo(FloatingPoint that)
Compares two floating point number numerically.
|
FloatingPoint |
FloatingPoint.divide(FloatingPoint that)
Returns this floating point number divided by the one specified.
|
boolean |
FloatingPoint.isLargerThan(FloatingPoint that)
Compares the absolute value of two FloatingPoint numbers.
|
FloatingPoint |
FloatingPoint.minus(FloatingPoint that)
Returns the difference between this FloatingPoint number and the one
specified.
|
FloatingPoint |
FloatingPoint.plus(FloatingPoint that)
Returns the sum of this floating point number with the one specified.
|
FloatingPoint |
FloatingPoint.times(FloatingPoint that)
Returns the product of this floating point number with the one specified.
|