Modifier and Type | Class and Description |
---|---|
class |
BasicDigitSet
Basic implementation of a
DigitSet . |
class |
BasicRationalNumber
Basic implementation of a rational number.
|
class |
BigIntegerNumber
Basic implementation of an integer number.
|
class |
DigitSet
A set of digits, having a radix and an exponent.
|
class |
IntegerNumber
An immutable integer number.
|
class |
SmallIntegerNumber
Implementation of an
IntegerNumber based on a
int value. |
Modifier and Type | Method and Description |
---|---|
RationalNumber |
RationalNumber.add(RationalNumber n)
Computes this+n, where n is a rational number.
|
RationalNumber |
IntegerNumber.add(RationalNumber n) |
static RationalNumber |
NumberCentral.createFraction(IntegerNumber numerator,
IntegerNumber denominator)
Returns a fraction with the given numerator and denominator.
|
static RationalNumber |
NumberCentral.createFraction(int numerator,
int denominator)
Returns a fraction with the given numerator and denominator, both
being an
int . |
RationalNumber |
RationalNumber.divide(RationalNumber n)
Computes this/n, where n is a rational number.
|
RationalNumber |
IntegerNumber.divide(RationalNumber n) |
RationalNumber |
RationalNumber.multiply(RationalNumber n)
Computes this*n, where n is a rational number.
|
RationalNumber |
IntegerNumber.multiply(RationalNumber n) |
RationalNumber |
RationalNumber.pow(IntegerNumber n) |
protected RationalNumber |
BigIntegerNumber.powImpl(int exponent) |
protected RationalNumber |
RationalNumber.powImpl(IntegerNumber n) |
RationalNumber |
IntegerNumber.powImpl(IntegerNumber n) |
RationalNumber |
RationalNumber.subtract(RationalNumber n)
Computes this-n, where n is a rational number.
|
RationalNumber |
IntegerNumber.subtract(RationalNumber n) |
static RationalNumber |
NumberCentral.valueOf(java.math.BigDecimal n)
Converts a
BigDecimal to a RationalNumber . |
static RationalNumber |
NumberCentral.valueOf(double n)
Converts a
double to a RationalNumber . |
static RationalNumber |
NumberCentral.valueOf(float n)
Converts a
float to a RationalNumber . |
Modifier and Type | Method and Description |
---|---|
RationalNumber |
RationalNumber.add(RationalNumber n)
Computes this+n, where n is a rational number.
|
RationalNumber |
IntegerNumber.add(RationalNumber n) |
protected int |
RationalNumber.compareTo(RationalNumber n)
Compares this number with the specified rational number, first level.
|
protected int |
RationalNumber.compareToImpl(RationalNumber n)
Compares this number with the specified rational number, second level.
|
protected int |
IntegerNumber.compareToImpl(RationalNumber n) |
RationalNumber |
RationalNumber.divide(RationalNumber n)
Computes this/n, where n is a rational number.
|
RationalNumber |
IntegerNumber.divide(RationalNumber n) |
RationalNumber |
RationalNumber.multiply(RationalNumber n)
Computes this*n, where n is a rational number.
|
RationalNumber |
IntegerNumber.multiply(RationalNumber n) |
RationalNumber |
RationalNumber.subtract(RationalNumber n)
Computes this-n, where n is a rational number.
|
RationalNumber |
IntegerNumber.subtract(RationalNumber n) |