Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- abs() - Method in class org.znerd.math.IntegerNumber
- abs() - Method in class org.znerd.math.RealNumber
-
Computes |this|.
- absInteger() - Method in class org.znerd.math.IntegerNumber
-
Computes |this| and returns an
IntegerNumber. - AbstractCompositeNumber - Class in org.znerd.math
-
Abstract base class for
CompositeNumberimplementations. - AbstractCompositeNumber(int, String, RealNumber[]) - Constructor for class org.znerd.math.AbstractCompositeNumber
-
Constructs a new
AbstractCompositeNumberobject. - add(IntegerNumber) - Method in class org.znerd.math.BigIntegerNumber
- add(IntegerNumber) - Method in class org.znerd.math.IntegerNumber
-
Computes this + n, where n is an integer number.
- add(IntegerNumber) - Method in class org.znerd.math.SmallIntegerNumber
- add(RationalNumber) - Method in class org.znerd.math.IntegerNumber
- add(RationalNumber) - Method in class org.znerd.math.RationalNumber
-
Computes this+n, where n is a rational number.
- add(RealNumber) - Method in class org.znerd.math.RationalNumber
- add(RealNumber) - Method in class org.znerd.math.RealNumber
-
Computes this + n, where n is a real number.
B
- BasicDigitSet - Class in org.znerd.math
-
Basic implementation of a
DigitSet. - BasicDigitSet(boolean, int, int[], int) - Constructor for class org.znerd.math.BasicDigitSet
-
Creates a new
BasicDigitSetinstance. - BasicRationalNumber - Class in org.znerd.math
-
Basic implementation of a rational number.
- BasicRationalNumber(IntegerNumber, IntegerNumber) - Constructor for class org.znerd.math.BasicRationalNumber
-
Constructs a new
BasicRationalNumberfrom a numerator and a denominator. - BigIntegerNumber - Class in org.znerd.math
-
Basic implementation of an integer number.
- BigIntegerNumber(BigInteger) - Constructor for class org.znerd.math.BigIntegerNumber
-
Constructs a
BigIntegerNumberfrom aBigInteger. - byteValue() - Method in class org.znerd.math.RealNumber
-
Returns the value of this number as a
byte.
C
- CanNotCompareException - Exception Class in org.znerd.math
-
Exception thrown to indicate a compare operation failed.
- CanNotCompareException(RealNumber, RealNumber) - Constructor for exception class org.znerd.math.CanNotCompareException
-
Constructs a new
CanNotCompareExceptionfor 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(Object) - Method in class org.znerd.math.RealNumber
-
Compares this object with the specified object.
- 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(RealNumber) - Method in class org.znerd.math.RealNumber
-
Compares this number with the specified number.
- compareToImpl(IntegerNumber) - Method in class org.znerd.math.IntegerNumber
-
Compares this number with the specified integer number, second level.
- compareToImpl(IntegerNumber) - Method in class org.znerd.math.SmallIntegerNumber
- compareToImpl(RationalNumber) - Method in class org.znerd.math.IntegerNumber
- 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.RationalNumber
-
Compares this number with the specified number, second level.
- compareToImpl(RealNumber) - Method in class org.znerd.math.RealNumber
-
Compares this number with the specified number, second level.
- 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
CompositeNumberobject. - 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(int) - Static method in class org.znerd.math.SmallIntegerNumber
-
Returns an instance of a
SmallIntegerNumberbased on aintvalue. - createInstance(BigInteger) - Static method in class org.znerd.math.BigIntegerNumber
-
Returns an instance of a
BigIntegerNumberbased on ajava.math.BigInteger. - createInstance(IntegerNumber, IntegerNumber) - Static method in class org.znerd.math.BasicRationalNumber
-
Returns an instance of a
BasicRationalNumberwith the given numerator and denominator. - createInstance(RealNumber, RealNumber) - Static method in class org.znerd.math.Power
-
Returns a
Powerwith the specified operands. - createInstance(RealNumber, RealNumber) - Static method in class org.znerd.math.Product
-
Returns a
Productwith the specified operands. - createInstance(RealNumber, RealNumber) - Static method in class org.znerd.math.Sum
-
Returns a
Sumwith 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
IntegerNumberwith a random value.
D
- dec() - Method in class org.znerd.math.IntegerNumber
-
Computes this-1.
- dec() - Method in class org.znerd.math.SmallIntegerNumber
- determineSign(RealNumber, RealNumber) - Static method in class org.znerd.math.Power
-
Computes the sign of a power with the specified operands.
- determineSign(RealNumber, RealNumber) - Static method in class org.znerd.math.Product
-
Computes the sign of a product with the specified operands.
- DigitSet - Class in org.znerd.math
-
A set of digits, having a radix and an exponent.
- DigitSet(IntegerNumber[], String) - Constructor for class org.znerd.math.DigitSet
-
Creates a new
DigitSetinstance. - divide(RationalNumber) - Method in class org.znerd.math.IntegerNumber
- divide(RationalNumber) - Method in class org.znerd.math.RationalNumber
-
Computes this/n, where n is a rational number.
- divide(RealNumber) - Method in class org.znerd.math.RationalNumber
- divide(RealNumber) - Method in class org.znerd.math.RealNumber
-
Computes this/n, where n is a real number.
- doubleValue() - Method in class org.znerd.math.BigIntegerNumber
- doubleValue() - Method in class org.znerd.math.RationalNumber
- doubleValue() - Method in class org.znerd.math.RealNumber
-
Returns the value of this number as a
double. - doubleValue() - Method in class org.znerd.math.SmallIntegerNumber
E
- equals(Object) - Method in class org.znerd.math.RealNumber
F
- fac() - Method in class org.znerd.math.IntegerNumber
-
Computes this!.
- fitsByte() - Method in class org.znerd.math.RealNumber
-
Determines if the truncated value of this number fits in a
byte. - fitsDouble() - Method in class org.znerd.math.RealNumber
-
Determines if the rounded value of this number fits in a
double. - fitsFloat() - Method in class org.znerd.math.RealNumber
-
Determines if the rounded value of this number fits in a
float. - fitsInt() - Method in class org.znerd.math.RealNumber
-
Determines if the truncated value of this number fits in an
int. - fitsLong() - Method in class org.znerd.math.RealNumber
-
Determines if the truncated value of this number fits in a
long. - fitsShort() - Method in class org.znerd.math.RealNumber
-
Determines if the truncated value of this number fits in a
short. - floatValue() - Method in class org.znerd.math.RealNumber
-
Returns the value of this number as a
float.
G
- 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 class 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.
H
- hashCode() - Method in class org.znerd.math.BigIntegerNumber
I
- inc() - Method in class org.znerd.math.IntegerNumber
-
Computes this+1.
- inc() - Method in class org.znerd.math.SmallIntegerNumber
- integerDivide(IntegerNumber) - Method in class org.znerd.math.BigIntegerNumber
- integerDivide(IntegerNumber) - Method in class org.znerd.math.IntegerNumber
-
Computes the integer result of this/n, where n is an integer number.
- integerDivide(IntegerNumber) - Method in class org.znerd.math.SmallIntegerNumber
- IntegerNumber - Class in org.znerd.math
-
An immutable integer number.
- IntegerNumber(int, String) - Constructor for class org.znerd.math.IntegerNumber
-
Creates a new
IntegerNumberwith the specified sign and the specified textual representation. - intValue() - Method in class org.znerd.math.RealNumber
-
Returns the value of this number as an
int. - intValue() - Method in class org.znerd.math.SmallIntegerNumber
- invert() - Method in class org.znerd.math.IntegerNumber
- invert() - Method in class org.znerd.math.RationalNumber
- invert() - Method in class org.znerd.math.RealNumber
-
Computes 1/this.
- isConsistent() - Method in class org.znerd.math.RoundingMode
-
Indicates if this rounding mode is consistent.
- isRelativePrime(IntegerNumber) - Method in class org.znerd.math.IntegerNumber
-
Determines if this and n are relative primes.
L
- longValue() - Method in class org.znerd.math.BigIntegerNumber
- longValue() - Method in class org.znerd.math.RealNumber
-
Returns the value of this number as a
long. - longValue() - Method in class org.znerd.math.SmallIntegerNumber
M
- MAXIMUM_RADIX - Static variable in class org.znerd.math.RealNumber
-
The maximum value for a radix.
- MAXIMUM_VALUE - Static variable in class org.znerd.math.SmallIntegerNumber
-
The maximum
IntegerNumberthat can be represented by this class. - MINIMUM_VALUE - Static variable in class org.znerd.math.SmallIntegerNumber
-
The minimum
IntegerNumberthat can be represented by this class. - MINUS_ONE - Static variable in class org.znerd.math.SmallIntegerNumber
-
Cached instance that represents the number minus one, -1.
- MINUS_ONE_HALF - Static variable in class org.znerd.math.BasicRationalNumber
-
Cached instance that represents the number minus one half, -1/2.
- MINUS_TWO - Static variable in class org.znerd.math.SmallIntegerNumber
-
Cached instance that represents the number minus two, -2.
- multiply(IntegerNumber) - Method in class org.znerd.math.BigIntegerNumber
- multiply(IntegerNumber) - Method in class org.znerd.math.IntegerNumber
-
Computes this * n, where n is an integer number.
- multiply(IntegerNumber) - Method in class org.znerd.math.SmallIntegerNumber
- multiply(RationalNumber) - Method in class org.znerd.math.IntegerNumber
- multiply(RationalNumber) - Method in class org.znerd.math.RationalNumber
-
Computes this*n, where n is a rational number.
- multiply(RealNumber) - Method in class org.znerd.math.RationalNumber
- multiply(RealNumber) - Method in class org.znerd.math.RealNumber
-
Computes this * n, where n is a real number.
N
- negate() - Method in class org.znerd.math.IntegerNumber
- negate() - Method in class org.znerd.math.RationalNumber
- negate() - Method in class org.znerd.math.RealNumber
-
Computes -this.
- negateInteger() - Method in class org.znerd.math.IntegerNumber
-
Computes -this and returns an
IntegerNumber. - negateInteger() - Method in class org.znerd.math.SmallIntegerNumber
- NumberCentral - Class in org.znerd.math
-
A static factory that produces
RealNumberobjects.
O
- ONE - Static variable in class org.znerd.math.SmallIntegerNumber
-
Cached instance that represents the number one, 1.
- ONE_HALF - Static variable in class org.znerd.math.BasicRationalNumber
-
Cached instance that represents the number one half, 1/2.
- org.znerd.math - package org.znerd.math
P
- pow(IntegerNumber) - Method in class org.znerd.math.RationalNumber
- pow(RealNumber) - Method in class org.znerd.math.RealNumber
-
Computes thisn, where n is a real number.
- Power - Class in org.znerd.math
-
A power, consisting of a base and an exponent.
- Power(RealNumber, RealNumber) - Constructor for class org.znerd.math.Power
-
Constructs a
Powerwith the specified base and exponent. - powImpl(int) - Method in class org.znerd.math.BigIntegerNumber
- powImpl(IntegerNumber) - Method in class org.znerd.math.IntegerNumber
- powImpl(IntegerNumber) - Method in class org.znerd.math.RationalNumber
- powImpl(RealNumber) - Method in class org.znerd.math.RationalNumber
- powImpl(RealNumber) - Method in class org.znerd.math.RealNumber
-
Computes thisn, where n is a real number, second level.
- Product - Class in org.znerd.math
-
A product of two real numbers.
- Product(RealNumber, RealNumber) - Constructor for class org.znerd.math.Product
-
Constructs a
Productbased on the 2 specified operands.
R
- RationalNumber - Class in org.znerd.math
-
Rational number.
- RationalNumber(IntegerNumber[]) - Constructor for class org.znerd.math.RationalNumber
-
Constructs a new
RationalNumberwith the specified numerator and denominator. - RationalNumber(IntegerNumber[], String) - Constructor for class org.znerd.math.RationalNumber
-
Constructs a new
RationalNumberwith 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
RealNumberobject. - 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(int, int, RoundingMode) - Method in class org.znerd.math.SmallIntegerNumber
- round(RealNumber, int, int) - Method in class org.znerd.math.RoundingMode
-
Rounds the specified digit for a number in the specified base.
- 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
RoundingModewith the specified name. - RoundingModes - Interface in org.znerd.math
-
Set of standard rounding modes.
S
- shortValue() - Method in class org.znerd.math.RealNumber
-
Returns the value of this number as a
short. - SmallIntegerNumber - Class in org.znerd.math
-
Implementation of an
IntegerNumberbased on aintvalue. - subtract(IntegerNumber) - Method in class org.znerd.math.IntegerNumber
-
Computes this - n, where n is an integer number.
- subtract(RationalNumber) - Method in class org.znerd.math.IntegerNumber
- subtract(RationalNumber) - Method in class org.znerd.math.RationalNumber
-
Computes this-n, where n is a rational number.
- subtract(RealNumber) - Method in class org.znerd.math.RationalNumber
- subtract(RealNumber) - Method in class org.znerd.math.RealNumber
-
Computes this - n, where n is a real number.
- Sum - Class in org.znerd.math
-
A sum of two real numbers.
- Sum(RealNumber, RealNumber) - Constructor for class org.znerd.math.Sum
-
Constructs a
Sumbased on the 2 specified operands.
T
- 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
BigDecimalwith the specified precision. - toBigDecimal(int) - Method in class org.znerd.math.RationalNumber
- toBigDecimal(int) - Method in class org.znerd.math.RealNumber
-
Converts the value of this number to a
BigDecimalwith the specified precision. - toBigDecimal(int, int) - Method in class org.znerd.math.IntegerNumber
-
Converts the value of this number to a
BigDecimalwith 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
BigDecimalwith the specified precision and rounding mode. - toBigDecimal(int, int) - Method in class org.znerd.math.RationalNumber
-
Converts the value of this number to a
BigDecimalwith the specified precision and rounding mode. - toBigDecimal(int, int) - Method in class org.znerd.math.RealNumber
-
Converts the value of this number to a
BigDecimalwith the specified precision and rounding mode. - toBigDecimal(int, int) - Method in class org.znerd.math.Sum
-
Converts the value of this number to a
BigDecimalwith 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.
V
- valueOf(byte) - Static method in class org.znerd.math.NumberCentral
-
Converts a
byteto anIntegerNumber. - valueOf(double) - Static method in class org.znerd.math.NumberCentral
-
Converts a
doubleto aRationalNumber. - valueOf(float) - Static method in class org.znerd.math.NumberCentral
-
Converts a
floatto aRationalNumber. - valueOf(int) - Static method in class org.znerd.math.NumberCentral
-
Converts an
intto anIntegerNumber. - valueOf(long) - Static method in class org.znerd.math.NumberCentral
-
Converts a
longto anIntegerNumber. - valueOf(short) - Static method in class org.znerd.math.NumberCentral
-
Converts a
shortto anIntegerNumber. - valueOf(BigDecimal) - Static method in class org.znerd.math.NumberCentral
-
Converts a
BigDecimalto aRationalNumber. - valueOf(BigInteger) - Static method in class org.znerd.math.NumberCentral
-
Converts a
BigIntegerto anIntegerNumber.
Z
- ZERO - Static variable in class org.znerd.math.SmallIntegerNumber
-
Cached instance that represents the number zero, 0.
_
- _value - Variable in class org.znerd.math.SmallIntegerNumber
-
The
intthisIntegerNumberimplementation is based on.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form