- CanNotCompareException - Exception in org.znerd.math
-
Exception thrown to indicate a compare operation failed.
- CanNotCompareException(RealNumber, RealNumber) - Constructor for exception org.znerd.math.CanNotCompareException
-
Constructs a new CanNotCompareException
for a failed
comparison between the specified numbers.
- checkDivideByZero(RealNumber) - Static method in class org.znerd.math.NumberCentral
-
Checks if dividing by the specified number would result in a division by
zero.
- compareTo(IntegerNumber) - Method in class org.znerd.math.IntegerNumber
-
Compares this number with the specified integer number, first level.
- compareTo(RationalNumber) - Method in class org.znerd.math.RationalNumber
-
Compares this number with the specified rational number, first level.
- compareTo(Object) - Method in class org.znerd.math.RealNumber
-
Compares this object with the specified object.
- compareTo(RealNumber) - Method in class org.znerd.math.RealNumber
-
Compares this number with the specified number.
- compareToImpl(RationalNumber) - Method in class org.znerd.math.IntegerNumber
-
- compareToImpl(IntegerNumber) - Method in class org.znerd.math.IntegerNumber
-
Compares this number with the specified integer number, second level.
- compareToImpl(RealNumber) - Method in class org.znerd.math.RationalNumber
-
Compares this number with the specified number, second level.
- compareToImpl(RationalNumber) - Method in class org.znerd.math.RationalNumber
-
Compares this number with the specified rational number, second level.
- compareToImpl(RealNumber) - Method in class org.znerd.math.RealNumber
-
Compares this number with the specified number, second level.
- compareToImpl(IntegerNumber) - Method in class org.znerd.math.SmallIntegerNumber
-
- compareToImpl(RealNumber) - Method in class org.znerd.math.Sum
-
- compareToImpl2(RealNumber) - Method in class org.znerd.math.RationalNumber
-
Compares this number with the specified number, third level.
- CompositeNumber - Class in org.znerd.math
-
A composite real number.
- CompositeNumber(int, String) - Constructor for class org.znerd.math.CompositeNumber
-
Constructs a new CompositeNumber
object.
- createFraction(int, int) - Static method in class org.znerd.math.NumberCentral
-
Returns a fraction with the given numerator and denominator, both
being an int
.
- createFraction(IntegerNumber, IntegerNumber) - Static method in class org.znerd.math.NumberCentral
-
Returns a fraction with the given numerator and denominator.
- createInstance(IntegerNumber, IntegerNumber) - Static method in class org.znerd.math.BasicRationalNumber
-
Returns an instance of a BasicRationalNumber
with the
given numerator and denominator.
- createInstance(BigInteger) - Static method in class org.znerd.math.BigIntegerNumber
-
Returns an instance of a BigIntegerNumber
based on a
java.math.BigInteger
.
- createInstance(RealNumber, RealNumber) - Static method in class org.znerd.math.Power
-
Returns a Power
with the specified operands.
- createInstance(RealNumber, RealNumber) - Static method in class org.znerd.math.Product
-
Returns a Product
with the specified operands.
- createInstance(int) - Static method in class org.znerd.math.SmallIntegerNumber
-
Returns an instance of a SmallIntegerNumber
based on a
int
value.
- createInstance(RealNumber, RealNumber) - Static method in class org.znerd.math.Sum
-
Returns a Sum
with the specified operands.
- createInteger(byte[]) - Static method in class org.znerd.math.NumberCentral
-
Returns an integer number from a byte array in two's complement
notation.
- createRandomInteger(int) - Static method in class org.znerd.math.NumberCentral
-
Returns an IntegerNumber
with a random value.
- gcd(IntegerNumber) - Method in class org.znerd.math.IntegerNumber
-
Computes the greatest common divisor of this and n.
- getBase() - Method in class org.znerd.math.Power
-
Returns the base of this power.
- getDenominator() - Method in class org.znerd.math.RationalNumber
-
Returns the denominator of this fraction.
- getDigits() - Method in class org.znerd.math.BasicDigitSet
-
- getDigits() - Method in class org.znerd.math.DigitSet
-
Returns a new array containing all the digits.
- getElement(int) - Method in class org.znerd.math.AbstractCompositeNumber
-
- getElement(int) - Method in class org.znerd.math.CompositeNumber
-
Returns the nth operand.
- getElement(int) - Method in class org.znerd.math.Sum
-
- getElementCount() - Method in class org.znerd.math.AbstractCompositeNumber
-
- getElementCount() - Method in class org.znerd.math.CompositeNumber
-
Counts the number of operands.
- getElementCount() - Method in class org.znerd.math.Sum
-
- getElements() - Method in class org.znerd.math.AbstractCompositeNumber
-
- getElements() - Method in class org.znerd.math.CompositeNumber
-
Returns the operands.
- getElements() - Method in class org.znerd.math.Sum
-
- getExponent() - Method in class org.znerd.math.BasicDigitSet
-
- getExponent() - Method in class org.znerd.math.DigitSet
-
Returns the exponent.
- getExponent() - Method in class org.znerd.math.Power
-
Returns the exponent of this power.
- getName() - Method in class org.znerd.math.RoundingMode
-
Returns a short, human-presentable, description of this rounding mode.
- getNumbers() - Method in exception org.znerd.math.CanNotCompareException
-
Returns the numbers that could not be compared in a new array.
- getNumerator() - Method in class org.znerd.math.RationalNumber
-
Returns the numerator of this fraction.
- getPrecision() - Method in class org.znerd.math.BasicDigitSet
-
- getPrecision() - Method in class org.znerd.math.DigitSet
-
Returns the precision, the total number of digits.
- getRadix() - Method in class org.znerd.math.BasicDigitSet
-
- getRadix() - Method in class org.znerd.math.DigitSet
-
Returns the radix or base.
- getSign() - Method in class org.znerd.math.RealNumber
-
Determines the sign of this number.
- getVersion() - Static method in class org.znerd.math.NumberCentral
-
Returns the current version of JUMP.
- RationalNumber - Class in org.znerd.math
-
Rational number.
- RationalNumber(IntegerNumber[]) - Constructor for class org.znerd.math.RationalNumber
-
Constructs a new RationalNumber
with the specified
numerator and denominator.
- RationalNumber(IntegerNumber[], String) - Constructor for class org.znerd.math.RationalNumber
-
Constructs a new RationalNumber
with the specified
numerator, denominator and textual presentation.
- RealNumber - Class in org.znerd.math
-
An immutable real number.
- RealNumber(int, String) - Constructor for class org.znerd.math.RealNumber
-
Constructs a new RealNumber
object.
- remainder(IntegerNumber) - Method in class org.znerd.math.IntegerNumber
-
Computes the remainder of this/n, where n is an
integer number.
- remainder(IntegerNumber) - Method in class org.znerd.math.SmallIntegerNumber
-
- round(int, int, RoundingMode) - Method in class org.znerd.math.RealNumber
-
Rounds to the specified radix, using the specified precision and
rounding mode.
- round(RealNumber, int, int) - Method in class org.znerd.math.RoundingMode
-
Rounds the specified digit for a number in the specified base.
- round(int, int, RoundingMode) - Method in class org.znerd.math.SmallIntegerNumber
-
- ROUND_CEILING - Static variable in interface org.znerd.math.RoundingModes
-
Rounding mode that rounds towards positive infinity.
- ROUND_DOWN - Static variable in interface org.znerd.math.RoundingModes
-
Rounding mode that rounds towards 0.
- ROUND_FLOOR - Static variable in interface org.znerd.math.RoundingModes
-
Rounding mode that rounds towards negative infinity.
- ROUND_UP - Static variable in interface org.znerd.math.RoundingModes
-
Rounding mode that rounds away from 0.
- roundImpl(RealNumber, int, int, int) - Method in class org.znerd.math.RoundingMode
-
Actually rounds the specified digit for a number in the specified base.
- RoundingMode - Class in org.znerd.math
-
Rounding mode.
- RoundingMode(String, boolean) - Constructor for class org.znerd.math.RoundingMode
-
Constructs a new RoundingMode
with the specified name.
- RoundingModes - Interface in org.znerd.math
-
Set of standard rounding modes.
- toBigDecimal() - Method in class org.znerd.math.IntegerNumber
-
Converts the value of this number to a BigDecimal
.
- toBigDecimal(int) - Method in class org.znerd.math.IntegerNumber
-
Converts the value of this number to a BigDecimal
with the
specified precision.
- toBigDecimal(int, int) - Method in class org.znerd.math.IntegerNumber
-
Converts the value of this number to a BigDecimal
with the
specified precision and rounding mode.
- toBigDecimal(int, int) - Method in class org.znerd.math.Power
-
- toBigDecimal(int, int) - Method in class org.znerd.math.Product
-
Converts the value of this number to a BigDecimal
with the
specified precision and rounding mode.
- toBigDecimal(int) - Method in class org.znerd.math.RationalNumber
-
- toBigDecimal(int, int) - Method in class org.znerd.math.RationalNumber
-
Converts the value of this number to a BigDecimal
with the
specified precision and rounding mode.
- toBigDecimal(int) - Method in class org.znerd.math.RealNumber
-
Converts the value of this number to a BigDecimal
with the
specified precision.
- toBigDecimal(int, int) - Method in class org.znerd.math.RealNumber
-
Converts the value of this number to a BigDecimal
with the
specified precision and rounding mode.
- toBigDecimal(int, int) - Method in class org.znerd.math.Sum
-
Converts the value of this number to a BigDecimal
with the
specified precision and rounding mode.
- toBigInteger() - Method in class org.znerd.math.BigIntegerNumber
-
- toBigInteger() - Method in class org.znerd.math.IntegerNumber
-
Converts the value of this number to a BigInteger
.
- toBigInteger() - Method in class org.znerd.math.RealNumber
-
Converts the value of this number to a BigInteger
.
- toBigInteger() - Method in class org.znerd.math.SmallIntegerNumber
-
- toByteArray() - Method in class org.znerd.math.BigIntegerNumber
-
- toByteArray() - Method in class org.znerd.math.IntegerNumber
-
Returns the two's-complement representation of this integer number.
- toByteArray() - Method in class org.znerd.math.SmallIntegerNumber
-
- toPrecision(int) - Method in class org.znerd.math.DigitSet
-
Returns a digit set with the specified precision.
- toPrecisionImpl(int) - Method in class org.znerd.math.BasicDigitSet
-
- toPrecisionImpl(int) - Method in class org.znerd.math.DigitSet
-
Returns a digit set with the specified precision, actual implementation.
- toString() - Method in class org.znerd.math.RealNumber
-
- toString() - Method in class org.znerd.math.RoundingMode
-
Returns a textual presentation of this object.
- trunc() - Method in class org.znerd.math.IntegerNumber
-
- trunc() - Method in class org.znerd.math.Power
-
- trunc() - Method in class org.znerd.math.Product
-
Rounds to an integer number towards 0.
- trunc() - Method in class org.znerd.math.RationalNumber
-
- trunc() - Method in class org.znerd.math.RealNumber
-
Rounds to an integer number towards 0.
- trunc() - Method in class org.znerd.math.Sum
-
Rounds to an integer number towards 0.
- TWO - Static variable in class org.znerd.math.SmallIntegerNumber
-
Cached instance that represents the number two, 2.