Index
All Classes and Interfaces|All Packages|Serialized Form
A
- abs() - Method in interface org.zfcj.math.numbers.RealNumber
-
Returns this
RealNumber
's absolute value - Aleph0 - Class in org.zfcj.math.numbers
-
Represents the aleph number aleph-zero, also called aleph-nought or aleph-null, and written as ℵ₀.
- ALEPH0 - Static variable in class org.zfcj.math.numbers.Aleph0
- AlephNumber - Interface in org.zfcj.math.numbers
-
AlephNumber
s represent the cardinalities of infinite sets. - almostEquals(double) - Method in interface org.zfcj.math.numbers.RealNumber
-
Returns true if the given double value is almost equal to this
RealNumber
's double value where almost equal means that their absolute difference is less thanFloatingPointMath#getMaxError()
- almostEquals(double, double) - Static method in interface org.zfcj.math.numbers.RealNumber
-
Returns true if the given double precision values are almost equal as defined by
FloatingPointMath#getMaxError()
- almostEquals(RealNumber) - Method in interface org.zfcj.math.numbers.RealNumber
-
Returns true if the given
RealNumber
is almost equal to thisRealNumber
where almost equal means that their absolute difference is less than FloatingPointMath.getRealMaxError() - apply(Integer[]) - Method in class org.zfcj.math.numbers.LeastCommonMultiple
- apply(Integer, Integer) - Method in class org.zfcj.math.numbers.IntegerAddition
- apply(Integer, Integer) - Method in class org.zfcj.math.numbers.IntegerDivision
- apply(Integer, Integer) - Method in class org.zfcj.math.numbers.IntegerModulo
- apply(Integer, Integer) - Method in class org.zfcj.math.numbers.IntegerMultiplication
- apply(Integer, Integer) - Method in class org.zfcj.math.numbers.IntegerSubtraction
- apply(PositiveInteger[]) - Method in class org.zfcj.math.numbers.EuclideanAlgorithm
- apply(RationalNumber, RationalNumber) - Method in class org.zfcj.math.numbers.RationalAddition
- apply(RationalNumber, RationalNumber) - Method in class org.zfcj.math.numbers.RationalMultiplication
- apply(RealNumber) - Method in class org.zfcj.math.numbers.RealAbsoluteValue
- apply(RealNumber, RealNumber) - Method in class org.zfcj.math.numbers.RealAddition
- apply(RealNumber, RealNumber) - Method in class org.zfcj.math.numbers.RealDivision
- apply(RealNumber, RealNumber) - Method in class org.zfcj.math.numbers.RealExponentiation
- apply(RealNumber, RealNumber) - Method in class org.zfcj.math.numbers.RealModulo
- apply(RealNumber, RealNumber) - Method in class org.zfcj.math.numbers.RealMultiplication
- apply(RealNumber, RealNumber) - Method in class org.zfcj.math.numbers.RealSubtraction
- AtLeast<N extends Integer> - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
that is at least some otherInteger
- AtLeastEight - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no less than 8 - AtLeastEighteen - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no less than 18 - AtLeastEleven - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no less than 11 - AtLeastFifteen - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no less than 15 - AtLeastFive - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no less than 5 - AtLeastFour - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no less than 4 - AtLeastFourteen - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no less than 14 - AtLeastMinusOne - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no less than -1 - AtLeastNine - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no less than 9 - AtLeastNineteen - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no less than 19 - AtLeastOne - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no less than 1 - AtLeastSeven - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no less than 7 - AtLeastSeventeen - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no less than 17 - AtLeastSix - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no less than 6 - AtLeastSixteen - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no less than 16 - AtLeastTen - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no less than 10 - AtLeastThirteen - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no less than 13 - AtLeastThree - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no less than 3 - AtLeastTwelve - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no less than 12 - AtLeastTwenty - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no less than 20 - AtLeastTwo - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no less than 2 - AtLeastZero - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no less than 0 - AtMost<N extends Integer> - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
that is at most some otherInteger
- AtMostEight - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no greater than 8 - AtMostEighteen - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no greater than 18 - AtMostEleven - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no greater than 11 - AtMostFifteen - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no greater than 15 - AtMostFive - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no greater than 5 - AtMostFour - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no greater than 4 - AtMostFourteen - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no greater than 14 - AtMostMinusOne - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no greater than -1 - AtMostNine - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no greater than 9 - AtMostNineteen - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no greater than 19 - AtMostOne - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no greater than 1 - AtMostSeven - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no greater than 7 - AtMostSeventeen - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no greater than 17 - AtMostSix - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no greater than 6 - AtMostSixteen - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no greater than 16 - AtMostTen - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no greater than 10 - AtMostThirteen - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no greater than 13 - AtMostThree - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no greater than 3 - AtMostTwelve - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no greater than 12 - AtMostTwenty - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no greater than 20 - AtMostTwo - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no greater than 2 - AtMostZero - Interface in org.zfcj.math.numbers.concrete
-
An
Integer
no greater than 0
B
- bigDecimalValue() - Method in class org.zfcj.math.numbers.concrete.ConcreteNumber
- bigDecimalValue() - Method in class org.zfcj.math.numbers.NegativeInfinity
- bigDecimalValue() - Method in class org.zfcj.math.numbers.PositiveInfinity
- bigDecimalValue() - Method in interface org.zfcj.math.numbers.RealNumber
-
Returns this
RealNumber
's value as aBigDecimal
- bigIntegerValue() - Method in class org.zfcj.math.numbers.concrete.ConcreteNumber
- bigIntegerValue() - Method in interface org.zfcj.math.numbers.Integer
-
Returns the value of this
Integer
as aBigInteger
C
- calculate(int...) - Static method in class org.zfcj.math.numbers.EuclideanAlgorithm
-
Returns the greatest common divisor of the given integers
- calculate(int...) - Static method in class org.zfcj.math.numbers.LeastCommonMultiple
-
Returns the least common multiple of the given integers
- calculate(long...) - Static method in class org.zfcj.math.numbers.EuclideanAlgorithm
-
Returns the greatest common divisor of the given long integers
- calculate(long...) - Static method in class org.zfcj.math.numbers.LeastCommonMultiple
-
Returns the least common multiple of the given longs
- calculate(BigInteger...) - Static method in class org.zfcj.math.numbers.EuclideanAlgorithm
-
Returns the greatest common divisor of the given
BigInteger
s - calculate(BigInteger...) - Static method in class org.zfcj.math.numbers.LeastCommonMultiple
-
Returns the least common multiple of the given integers
- calculate(Integer...) - Static method in class org.zfcj.math.numbers.LeastCommonMultiple
-
Returns the least common multiple of the given integers
- calculate(Integer, Integer) - Static method in class org.zfcj.math.numbers.IntegerAddition
-
Adds the given
Integer
s and returns their sum - calculate(Integer, Integer) - Static method in class org.zfcj.math.numbers.IntegerModulo
-
Calculates the remainder of dividing the given dividend by the given divisor
- calculate(Integer, Integer) - Static method in class org.zfcj.math.numbers.IntegerMultiplication
-
Multiplies the given
Integer
s and returns their product - calculate(Integer, Integer) - Static method in class org.zfcj.math.numbers.IntegerSubtraction
-
Subtracts the given sutrahend from the given minued returning their difference
- calculate(NaturalNumber, NaturalNumber) - Static method in class org.zfcj.math.numbers.IntegerAddition
-
Adds the given
NaturalNumber
s and returns the result - calculate(NaturalNumber, NaturalNumber) - Static method in class org.zfcj.math.numbers.IntegerMultiplication
-
Multiplies the given
NaturalNumber
s and returns their product - calculate(PositiveInteger...) - Static method in class org.zfcj.math.numbers.EuclideanAlgorithm
-
Returns the greatest common divisor of the given PositiveIntegers
- calculate(PositiveInteger, PositiveInteger) - Static method in class org.zfcj.math.numbers.IntegerAddition
-
Adds the given
PositiveInteger
s and returns the result - calculate(PositiveInteger, PositiveInteger) - Static method in class org.zfcj.math.numbers.IntegerMultiplication
-
Multiplies the given
PositiveInteger
s and returns their product - calculate(RationalNumber, RationalNumber) - Static method in class org.zfcj.math.numbers.RationalAddition
-
Calculates the sum of addition of the given
RationalNumber
summands - calculate(RationalNumber, RationalNumber) - Static method in class org.zfcj.math.numbers.RationalMultiplication
-
Calculates the product of multiplication of the given
RationalNumber
factors - calculate(RealNumber) - Static method in class org.zfcj.math.numbers.RealAbsoluteValue
-
Calculates the
RealNumber
that is the absolute value of the givenRealNumber
- calculate(RealNumber, RealNumber) - Static method in class org.zfcj.math.numbers.RealAddition
-
Calculates the sum of the given
RealNumber
s r and s and returns the result - calculate(RealNumber, RealNumber) - Static method in class org.zfcj.math.numbers.RealDivision
-
Calculates the quotient of the given
RealNumber
s r and s and returns the result - calculate(RealNumber, RealNumber) - Static method in class org.zfcj.math.numbers.RealExponentiation
-
Calculates the power of exponentiation of the given
RealNumber
base and exponent - calculate(RealNumber, RealNumber) - Static method in class org.zfcj.math.numbers.RealModulo
-
Calculates the modulo of the given
RealNumber
s - calculate(RealNumber, RealNumber) - Static method in class org.zfcj.math.numbers.RealMultiplication
-
Calculates the product of multiplication of the given
RealNumber
factors - calculate(RealNumber, RealNumber) - Static method in class org.zfcj.math.numbers.RealSubtraction
-
Calculates the difference of subtracting the given
RealNumber
s - CardinalNumber - Interface in org.zfcj.math.numbers
-
A
CardinalNumber
is what is commonly called the cardinality or number of elements of a set. - compareTo(RealNumber) - Method in interface org.zfcj.math.numbers.Integer
- compareTo(RealNumber) - Method in interface org.zfcj.math.numbers.IrrationalNumber
- compareTo(RealNumber) - Method in class org.zfcj.math.numbers.NegativeInfinity
- compareTo(RealNumber) - Method in class org.zfcj.math.numbers.PositiveInfinity
- compareTo(RealNumber) - Method in interface org.zfcj.math.numbers.RealNumber
- ConcreteNumber - Class in org.zfcj.math.numbers.concrete
-
A
ConcreteNumber
is anInteger
whose value is always the same specific integer and is identified by its type name. - ConcreteNumber(int) - Constructor for class org.zfcj.math.numbers.concrete.ConcreteNumber
- context() - Method in interface org.zfcj.math.numbers.IrrationalNumber
-
Returns the
MathContext
used for someBigDecimal
calculations - count0ToN() - Method in interface org.zfcj.math.numbers.NaturalNumber
-
Returns a
Stream
of allNaturalNumber
s in the range fromZero
to thisNaturalNumber
- count0ToN(N) - Static method in class org.zfcj.math.numbers.concrete.ConcreteNumber
-
Returns a stream of
ConcreteNumber
s fromZERO
toN
- count0ToNMinus1() - Method in interface org.zfcj.math.numbers.NaturalNumber
-
Returns a
Stream
of allNaturalNumber
s in the range fromZero
to thisNaturalNumber
minus 1 - count0ToNMinus1(N) - Static method in class org.zfcj.math.numbers.concrete.ConcreteNumber
-
Returns a stream of
ConcreteNumber
s fromZERO
toN
-1 - count1ToN() - Method in interface org.zfcj.math.numbers.PositiveInteger
-
Returns a
Stream
of allPositiveInteger
s in the range fromOne
to thisPositiveInteger
- count1ToN(N) - Static method in class org.zfcj.math.numbers.concrete.ConcreteNumber
-
Returns a stream of
ConcreteNumber
s fromONE
toN
- count1ToNMinus1() - Method in interface org.zfcj.math.numbers.PositiveInteger
-
Returns a
Stream
of allPositiveInteger
s in the range fromOne
to thisPositiveInteger
minus 1 - CountableNumber - Interface in org.zfcj.math.numbers
-
A
CountableNumber
is aCardinalNumber
that is either aNaturalNumber
orAleph0
- countMToN(M, N) - Static method in class org.zfcj.math.numbers.concrete.ConcreteNumber
-
Returns a stream of
ConcreteNumber
s fromM
toN
- countNMinus1To0() - Method in interface org.zfcj.math.numbers.PositiveInteger
-
Returns a
Stream
of allNaturalNumber
s in the range from thisNaturalNumber
minus 1 toZero
- countNTo0() - Method in interface org.zfcj.math.numbers.NaturalNumber
-
Returns a
Stream
of allNaturalNumber
s in the range from thisNaturalNumber
toZero
- countNTo1() - Method in interface org.zfcj.math.numbers.NaturalNumber
-
Returns a
Stream
of allNaturalNumber
s in the range from thisNaturalNumber
toOne
- countTo(Integer) - Method in interface org.zfcj.math.numbers.Integer
-
Returns a
Stream
consisting of allInteger
s in the range from thisInteger
to the givenInteger
- countTo(NaturalNumber) - Method in interface org.zfcj.math.numbers.NaturalNumber
-
Returns a
Stream
of allNaturalNumber
s in the range from thisNaturalNumber
to the givenNaturalNumber
- countTo(PositiveInteger) - Method in interface org.zfcj.math.numbers.PositiveInteger
-
Returns a
Stream
of allPositiveInteger
s in the range from thisPositiveInteger
to the givenPositiveInteger
D
- denominator() - Method in interface org.zfcj.math.numbers.Integer
- denominator() - Method in interface org.zfcj.math.numbers.RationalNumber
-
Return the denominator
- divide(Integer) - Method in interface org.zfcj.math.numbers.Integer
-
Returns the quotient of dividing this
Integer
by the givenInteger
- divide(NaturalNumber) - Method in interface org.zfcj.math.numbers.NaturalNumber
-
Returns the product of this
NaturalNumber
and the givenNaturalNumber
- divide(PositiveInteger) - Method in interface org.zfcj.math.numbers.PositiveInteger
-
Returns the quotient of dividing this
PositiveInteger
by the givenPositiveInteger
- dividedBy(RationalNumber) - Method in interface org.zfcj.math.numbers.RationalNumber
-
Returns the quotient of dividing this
RationalNumber
by the givenRationalNumber
- dividedBy(RealNumber) - Method in interface org.zfcj.math.numbers.RealNumber
-
Returns the quotient of dividing this
RealNumber
by the givenRealNumber
- doubleValue() - Method in interface org.zfcj.math.numbers.Integer
- doubleValue() - Method in class org.zfcj.math.numbers.NegativeInfinity
- doubleValue() - Method in class org.zfcj.math.numbers.PositiveInfinity
- doubleValue() - Method in interface org.zfcj.math.numbers.RealNumber
-
Returns this
RealNumber
's value with double-precision type.
E
- Eight - Class in org.zfcj.math.numbers.concrete
-
The concrete number 8
- EIGHT - Static variable in class org.zfcj.math.numbers.concrete.Eight
- Eighteen - Class in org.zfcj.math.numbers.concrete
-
The concrete number 18
- EIGHTEEN - Static variable in class org.zfcj.math.numbers.concrete.Eighteen
- Eleven - Class in org.zfcj.math.numbers.concrete
-
The concrete number 11
- ELEVEN - Static variable in class org.zfcj.math.numbers.concrete.Eleven
- equals(Object) - Method in class org.zfcj.math.numbers.concrete.ConcreteNumber
- equals(Object) - Method in class org.zfcj.math.numbers.NegativeInfinity
- equals(Object) - Method in class org.zfcj.math.numbers.PositiveInfinity
- equals(Integer, Integer) - Static method in interface org.zfcj.math.numbers.Integer
-
Returns true if the given
Integer
s are equal, false otherwise - EuclideanAlgorithm - Class in org.zfcj.math.numbers
-
The Euclidean Algorithm is an efficient method for computing the (GCD) greatest common divisor of a set of integers
- EuclideanAlgorithm() - Constructor for class org.zfcj.math.numbers.EuclideanAlgorithm
F
- Fifteen - Class in org.zfcj.math.numbers.concrete
-
The concrete number 15
- FIFTEEN - Static variable in class org.zfcj.math.numbers.concrete.Fifteen
- Five - Class in org.zfcj.math.numbers.concrete
-
The concrete number 5
- FIVE - Static variable in class org.zfcj.math.numbers.concrete.Five
- FloatingPointMath - Class in org.zfcj.math.numbers
-
A container for
ThreadLocal
s that provide error thresholds for floating point calculations - FloatingPointMath() - Constructor for class org.zfcj.math.numbers.FloatingPointMath
- Four - Class in org.zfcj.math.numbers.concrete
-
The concrete number 4
- FOUR - Static variable in class org.zfcj.math.numbers.concrete.Four
- FourOrEight - Interface in org.zfcj.math.numbers.concrete
-
The number
Four
or the numberEight
- Fourteen - Class in org.zfcj.math.numbers.concrete
-
The concrete number 14
- FOURTEEN - Static variable in class org.zfcj.math.numbers.concrete.Fourteen
G
- getMaxError() - Static method in class org.zfcj.math.numbers.FloatingPointMath
- getRealMaxError() - Static method in class org.zfcj.math.numbers.FloatingPointMath
- greaterThan(Integer) - Method in interface org.zfcj.math.numbers.Integer
-
Returns true if this
Integer
is greater than the givenInteger
, false otherwise - greaterThan(RealNumber) - Method in interface org.zfcj.math.numbers.RealNumber
-
Returns true if this
RealNumber
is greater than the givenRealNumber
, false otherwise - GreaterThanAleph0 - Class in org.zfcj.math.numbers
-
Represents a generic uncountable infinite cardinal
- greaterThanOrEqualTo(Integer) - Method in interface org.zfcj.math.numbers.Integer
-
Returns true if this
Integer
is greater than the givenInteger
, false otherwise - greaterThanOrEqualTo(RealNumber) - Method in interface org.zfcj.math.numbers.RealNumber
-
Returns true if this
RealNumber
is greater than or equal to the givenRealNumber
, false otherwise
H
- hashCode() - Method in class org.zfcj.math.numbers.concrete.ConcreteNumber
- hashCode() - Method in class org.zfcj.math.numbers.NegativeInfinity
- hashCode() - Method in class org.zfcj.math.numbers.PositiveInfinity
- hasType(int) - Static method in class org.zfcj.math.numbers.concrete.ConcreteNumber
-
Determines if there is a
ConcreteNumber
subtype whose value equals the given int - hasType(long) - Static method in class org.zfcj.math.numbers.concrete.ConcreteNumber
-
Determines if there is a
ConcreteNumber
subtype whose value equals the given long
I
- INSTANCE - Static variable in class org.zfcj.math.numbers.GreaterThanAleph0
- intDenominator() - Method in interface org.zfcj.math.numbers.Integer
- intDenominator() - Method in interface org.zfcj.math.numbers.RationalNumber
-
Returns the denominator as a primitive int or throws an exception if its not in the range of primitive ints
- Integer - Interface in org.zfcj.math.numbers
-
Any integer number such as -12, 14, 0, 1 google, etc.
- IntegerAddition - Class in org.zfcj.math.numbers
-
A
BinaryOperator
that adds twoInteger
s and returns the sum - IntegerAddition() - Constructor for class org.zfcj.math.numbers.IntegerAddition
- IntegerDivision - Class in org.zfcj.math.numbers
-
A
BinaryOperator
that divides oneInteger
s by another and returns their quotient - IntegerDivision() - Constructor for class org.zfcj.math.numbers.IntegerDivision
- IntegerModulo - Class in org.zfcj.math.numbers
-
A
BinaryOperator
that divides oneInteger
s by another and returns the remainder - IntegerModulo() - Constructor for class org.zfcj.math.numbers.IntegerModulo
- IntegerMultiplication - Class in org.zfcj.math.numbers
-
A
BinaryOperator
that multiplies twoInteger
s and returns their product - IntegerMultiplication() - Constructor for class org.zfcj.math.numbers.IntegerMultiplication
- IntegerSubtraction - Class in org.zfcj.math.numbers
-
A
BinaryOperator
that subtracts oneInteger
from another and returns the difference - IntegerSubtraction() - Constructor for class org.zfcj.math.numbers.IntegerSubtraction
- intNumerator() - Method in interface org.zfcj.math.numbers.Integer
- intNumerator() - Method in interface org.zfcj.math.numbers.RationalNumber
-
Returns the numerator as a primitive int or throws an exception if its not in the range of primitive ints
- intValue() - Method in class org.zfcj.math.numbers.concrete.ConcreteNumber
- intValue() - Method in interface org.zfcj.math.numbers.Integer
-
Returns the value of this
Integer
as a primitive int or throws an Exception if its not within int range. - IrrationalNumber<N extends PositiveInteger> - Interface in org.zfcj.math.numbers
-
An
IrrationalNumber
is aRealNumber
that is not aRationalNumber
. - isDouble() - Method in class org.zfcj.math.numbers.concrete.ConcreteNumber
- isDouble() - Method in interface org.zfcj.math.numbers.IrrationalNumber
- isDouble() - Method in class org.zfcj.math.numbers.NegativeInfinity
- isDouble() - Method in class org.zfcj.math.numbers.PositiveInfinity
- isDouble() - Method in interface org.zfcj.math.numbers.RealNumber
-
Determines if this
RealNumber
's value has the precision of a primitive double - isInt() - Method in class org.zfcj.math.numbers.concrete.ConcreteNumber
- isInt() - Method in interface org.zfcj.math.numbers.RationalNumber
-
Returns true if this RationalNumber's numerator and denomiator are both in the range of primitive ints
- isLong() - Method in class org.zfcj.math.numbers.concrete.ConcreteNumber
- isLong() - Method in interface org.zfcj.math.numbers.RationalNumber
-
Returns true if this RationalNumber's numerator and denomiator are both in the range of primitive longs
L
- LeastCommonMultiple - Class in org.zfcj.math.numbers
-
A
Function
that calculates the least common multiple of a set ofInteger
s - LeastCommonMultiple() - Constructor for class org.zfcj.math.numbers.LeastCommonMultiple
- lessThan(Integer) - Method in interface org.zfcj.math.numbers.Integer
-
Returns true if this
Integer
is less than the givenInteger
, false otherwise - lessThan(RealNumber) - Method in interface org.zfcj.math.numbers.RealNumber
-
Returns true if this
RealNumber
is less than the givenRealNumber
, false otherwise - lessThanOrEqualTo(Integer) - Method in interface org.zfcj.math.numbers.Integer
-
Returns true if this
Integer
is less than the givenInteger
, false otherwise - lessThanOrEqualTo(RealNumber) - Method in interface org.zfcj.math.numbers.RealNumber
-
Returns true if this
RealNumber
is less than or equal to the givenRealNumber
, false otherwise - longDenominator() - Method in interface org.zfcj.math.numbers.Integer
- longDenominator() - Method in interface org.zfcj.math.numbers.RationalNumber
-
Returns the denominator as a primitive long or throws an Exception if its not in the range of primitive longs
- longNumerator() - Method in interface org.zfcj.math.numbers.Integer
- longNumerator() - Method in interface org.zfcj.math.numbers.RationalNumber
-
Returns the numerator as a primitive long or throws an Exception if its not in the range of primitive longs
- longValue() - Method in class org.zfcj.math.numbers.concrete.ConcreteNumber
- longValue() - Method in interface org.zfcj.math.numbers.Integer
-
Returns the value of this
Integer
as a primitive long or throws an Exception if its not within the range of long ints.
M
- MAX_INT - Static variable in interface org.zfcj.math.numbers.PositiveInteger
- minus(Integer) - Method in interface org.zfcj.math.numbers.Integer
-
Returns the difference between this
Integer
and the givenInteger
- minus(RationalNumber) - Method in interface org.zfcj.math.numbers.RationalNumber
-
Returns the difference between this
RationalNumber
and the givenRationalNumber
- minus(RealNumber) - Method in interface org.zfcj.math.numbers.RealNumber
-
Returns the difference between this
RealNumber
and the givenRealNumber
- MINUS_ONE - Static variable in class org.zfcj.math.numbers.concrete.MinusOne
- minusOne() - Method in interface org.zfcj.math.numbers.PositiveInteger
-
Returns the
NaturalNumber
that is one less than thisPositiveInteger
- MinusOne - Class in org.zfcj.math.numbers.concrete
-
The concrete number -1
- modulo(Integer) - Method in interface org.zfcj.math.numbers.Integer
-
Returns the remainder of dividing this
Integer
by the givenInteger
- modulo(NaturalNumber) - Method in interface org.zfcj.math.numbers.NaturalNumber
-
Returns the remainder of dividing this
NaturalNumber
by the givenNaturalNumber
- modulo(RealNumber) - Method in interface org.zfcj.math.numbers.RealNumber
-
Returns the remainder of dividing this
RealNumber
by the givenRealNumber
N
- NaturalNumber - Interface in org.zfcj.math.numbers
-
A
NaturalNumber
is a non-negativeInteger
- NegativeInfinity - Class in org.zfcj.math.numbers
-
Represents an actualized negative infinity, denoted as -∞, a
RealNumber
less than any otherRealNumber
- Nine - Class in org.zfcj.math.numbers.concrete
-
The concrete number 9
- NINE - Static variable in class org.zfcj.math.numbers.concrete.Nine
- Nineteen - Class in org.zfcj.math.numbers.concrete
-
The concrete number 19
- NINETEEN - Static variable in class org.zfcj.math.numbers.concrete.Nineteen
- NMinus1<N extends ConcreteNumber> - Interface in org.zfcj.math.numbers.concrete
-
Represents an
Integer
that is 1 less than some other (integer)ConcreteNumber
- NPlus1<N extends ConcreteNumber> - Interface in org.zfcj.math.numbers.concrete
-
Represents an
Integer
that is 1 more than some other (integer)ConcreteNumber
- Number - Interface in org.zfcj.math.numbers
-
A number of some type, ie real number, integer, etc.
- numerator() - Method in interface org.zfcj.math.numbers.Integer
- numerator() - Method in interface org.zfcj.math.numbers.RationalNumber
-
Return the numerator
- NumericPrecisionException - Exception in org.zfcj.math.numbers
-
An
RuntimeException
that indicates a loss of numeric precision occurred. - NumericPrecisionException() - Constructor for exception org.zfcj.math.numbers.NumericPrecisionException
- NumericPrecisionException(String) - Constructor for exception org.zfcj.math.numbers.NumericPrecisionException
O
- of(double) - Static method in interface org.zfcj.math.numbers.RealNumber
-
Creates a new
RealNumber
for the given double precision value - of(int) - Static method in class org.zfcj.math.numbers.concrete.ConcreteNumber
-
Returns the ConcreteNumber whose value is the given int
- of(int) - Static method in interface org.zfcj.math.numbers.Integer
-
Returns an
Integer
whose value is the givenint
- of(int) - Static method in interface org.zfcj.math.numbers.NaturalNumber
-
Returns the
NaturalNumber
that corresponds to the given int i - of(int) - Static method in interface org.zfcj.math.numbers.PositiveInteger
-
Creates a new
PositiveInteger
whose value is the givenint
- of(int, int) - Static method in interface org.zfcj.math.numbers.RationalNumber
-
Creates a new
RationalNumber
from the given int numerator and denominator - of(long) - Static method in interface org.zfcj.math.numbers.Integer
-
Returns an
Integer
whose value is the givenlong
- of(long) - Static method in interface org.zfcj.math.numbers.NaturalNumber
-
Returns the
NaturalNumber
that corresponds to the given long l - of(long) - Static method in interface org.zfcj.math.numbers.PositiveInteger
-
Creates a new
PositiveInteger
whose value is the givenlong
- of(long, long) - Static method in interface org.zfcj.math.numbers.RationalNumber
-
Creates a new
RationalNumber
from the given long numerator and denominator - of(BigDecimal) - Static method in interface org.zfcj.math.numbers.RealNumber
-
Creates a new
RealNumber
for the givenBigInteger
value - of(BigInteger) - Static method in interface org.zfcj.math.numbers.Integer
-
Creates a new
Integer
whose value is the givenBigInteger
- of(BigInteger) - Static method in interface org.zfcj.math.numbers.NaturalNumber
-
Returns the
NaturalNumber
that corresponds to the givenBigInteger
- of(BigInteger) - Static method in interface org.zfcj.math.numbers.PositiveInteger
-
Creates a new
PositiveInteger
whose value is the givenBigInteger
- of(Integer, Integer) - Static method in interface org.zfcj.math.numbers.RationalNumber
-
Creates a new
RationalNumber
from the given Integer numerator and denominator - ofNatural(int) - Static method in class org.zfcj.math.numbers.concrete.ConcreteNumber
-
Returns a
ConcreteNumber
whose value is equal to the givenint
which must be greater than or equal to 0. - One - Class in org.zfcj.math.numbers.concrete
-
The concrete number 1
- ONE - Static variable in class org.zfcj.math.numbers.concrete.One
- org.zfcj.math.concretenumbers - module org.zfcj.math.concretenumbers
-
Provides integer singleton types and increased compile-time safety for numeric logic
- org.zfcj.math.numbers - package org.zfcj.math.numbers
-
Core numeric types for integer and real-valued arithmetic
- org.zfcj.math.numbers.concrete - package org.zfcj.math.numbers.concrete
-
Provides the auto-generated
ConcreteNumber
abstract base class along with its singleton sub-typesZero
,One
,Two
, etc and supporting types
P
- parse(String) - Static method in interface org.zfcj.math.numbers.Integer
-
Creates a new
Integer
from the given string or throws anException
if the string does not represent aInteger
. - parse(String) - Static method in interface org.zfcj.math.numbers.NaturalNumber
-
Creates a new
NaturalNumber
from the given string - parse(String) - Static method in interface org.zfcj.math.numbers.PositiveInteger
-
Creates a new
PositiveInteger
from the given string or throws anException
if the string does not represent aPositiveInteger
. - plus(Integer) - Method in interface org.zfcj.math.numbers.Integer
-
Returns the sum of this
Integer
and the givenInteger
- plus(NaturalNumber) - Method in interface org.zfcj.math.numbers.NaturalNumber
-
Returns the sum of this
NaturalNumber
and the givenNaturalNumber
- plus(PositiveInteger) - Method in interface org.zfcj.math.numbers.NaturalNumber
-
Returns the sum of this
NaturalNumber
and the givenPositiveInteger
- plus(PositiveInteger) - Method in interface org.zfcj.math.numbers.PositiveInteger
-
Returns the sum of this
PositiveInteger
and the givenPositiveInteger
- plus(RationalNumber) - Method in interface org.zfcj.math.numbers.RationalNumber
-
Returns the sum of this
RationalNumber
and the givenRationalNumber
- plus(RealNumber) - Method in interface org.zfcj.math.numbers.RealNumber
-
Returns the sum of this
RealNumber
and the givenRealNumber
- PositiveInfinity - Class in org.zfcj.math.numbers
-
Represents an actualized positive infinity, denoted as +∞, a
RealNumber
greater than any otherRealNumber
- PositiveInteger - Interface in org.zfcj.math.numbers
-
A
PositiveInteger
is aNaturalNumber
that isn'tZero
. - pow(RealNumber) - Method in interface org.zfcj.math.numbers.RealNumber
-
Returns the product of exponentiating this
RealNumber
by the givenRealNumber
- precision() - Method in interface org.zfcj.math.numbers.IrrationalNumber
R
- RationalAddition - Class in org.zfcj.math.numbers
-
A
BinaryOperator
that add twoRationalNumber
s and returns the sum - RationalAddition() - Constructor for class org.zfcj.math.numbers.RationalAddition
- RationalMultiplication - Class in org.zfcj.math.numbers
-
A
BinaryOperator
that multiplies twoRealNumber
s and returns the product - RationalMultiplication() - Constructor for class org.zfcj.math.numbers.RationalMultiplication
- RationalNumber - Interface in org.zfcj.math.numbers
-
A
RationalNumber
, also called a fraction, is aRealNumber
that can be defined as a ratio of twoInteger
s. - RealAbsoluteValue - Class in org.zfcj.math.numbers
-
A
Function
that calculates the absolute value of aRealNumber
- RealAbsoluteValue() - Constructor for class org.zfcj.math.numbers.RealAbsoluteValue
- RealAddition - Class in org.zfcj.math.numbers
-
A
BinaryOperation
that returns the sum of twoRealNumber
s - RealAddition() - Constructor for class org.zfcj.math.numbers.RealAddition
- RealDivision - Class in org.zfcj.math.numbers
-
A
BinaryOperator
that divides twoRealNumber
s and returns the quotient - RealDivision() - Constructor for class org.zfcj.math.numbers.RealDivision
- RealExponentiation - Class in org.zfcj.math.numbers
-
A
BinaryOperator
that computes the exponentiation of oneRealNumber
by another - RealExponentiation() - Constructor for class org.zfcj.math.numbers.RealExponentiation
- RealModulo - Class in org.zfcj.math.numbers
-
A
BinaryOperator
that computes the modulo of oneRealNumber
by another - RealModulo() - Constructor for class org.zfcj.math.numbers.RealModulo
- RealMultiplication - Class in org.zfcj.math.numbers
-
A
BinaryOperator
that multiplies twoRealNumber
s and returns their product - RealMultiplication() - Constructor for class org.zfcj.math.numbers.RealMultiplication
- RealNumber - Interface in org.zfcj.math.numbers
-
A
RealNumber
is an element of the set ofRealNumbers
ℝ - RealSubtraction - Class in org.zfcj.math.numbers
-
A
BinaryOperator
that subtracts oneRealNumber
from another and returns their difference - RealSubtraction() - Constructor for class org.zfcj.math.numbers.RealSubtraction
- reduce() - Method in interface org.zfcj.math.numbers.RationalNumber
-
Returns a
RationalNumber
that is equivalent to thisRationalNumber
reduced to its lowest terms
S
- setMaxError(double) - Static method in class org.zfcj.math.numbers.FloatingPointMath
- setRealMaxError(RealNumber) - Static method in class org.zfcj.math.numbers.FloatingPointMath
- Seven - Class in org.zfcj.math.numbers.concrete
-
The concrete number 7
- SEVEN - Static variable in class org.zfcj.math.numbers.concrete.Seven
- Seventeen - Class in org.zfcj.math.numbers.concrete
-
The concrete number 17
- SEVENTEEN - Static variable in class org.zfcj.math.numbers.concrete.Seventeen
- Six - Class in org.zfcj.math.numbers.concrete
-
The concrete number 6
- SIX - Static variable in class org.zfcj.math.numbers.concrete.Six
- Sixteen - Class in org.zfcj.math.numbers.concrete
-
The concrete number 16
- SIXTEEN - Static variable in class org.zfcj.math.numbers.concrete.Sixteen
T
- Ten - Class in org.zfcj.math.numbers.concrete
-
The concrete number 10
- TEN - Static variable in class org.zfcj.math.numbers.concrete.Ten
- Thirteen - Class in org.zfcj.math.numbers.concrete
-
The concrete number 13
- THIRTEEN - Static variable in class org.zfcj.math.numbers.concrete.Thirteen
- Three - Class in org.zfcj.math.numbers.concrete
-
The concrete number 3
- THREE - Static variable in class org.zfcj.math.numbers.concrete.Three
- times(Integer) - Method in interface org.zfcj.math.numbers.Integer
-
Returns the product of this
Integer
and the givenInteger
- times(NaturalNumber) - Method in interface org.zfcj.math.numbers.NaturalNumber
-
Returns the product of this
NaturalNumber
and the givenNaturalNumber
- times(PositiveInteger) - Method in interface org.zfcj.math.numbers.PositiveInteger
-
Returns the product of this
PositiveInteger
and the givenPositiveInteger
- times(RationalNumber) - Method in interface org.zfcj.math.numbers.RationalNumber
-
Returns the product of multiplying this
RationalNumber
by the givenRationalNumber
- times(RealNumber) - Method in interface org.zfcj.math.numbers.RealNumber
-
Returns the product of multiplying this
RealNumber
by the givenRealNumber
- toBinaryString(Integer) - Static method in interface org.zfcj.math.numbers.Integer
-
Returns a binary string representation of the given
Integer
- toString() - Method in class org.zfcj.math.numbers.Aleph0
- toString() - Method in class org.zfcj.math.numbers.concrete.ConcreteNumber
- toString() - Method in class org.zfcj.math.numbers.GreaterThanAleph0
- toString() - Method in class org.zfcj.math.numbers.NegativeInfinity
- toString() - Method in class org.zfcj.math.numbers.PositiveInfinity
- truncate() - Method in interface org.zfcj.math.numbers.RealNumber
-
Truncates this
RealNumber
towardZERO
- Twelve - Class in org.zfcj.math.numbers.concrete
-
The concrete number 12
- TWELVE - Static variable in class org.zfcj.math.numbers.concrete.Twelve
- Twenty - Class in org.zfcj.math.numbers.concrete
-
The concrete number 20
- TWENTY - Static variable in class org.zfcj.math.numbers.concrete.Twenty
- Two - Class in org.zfcj.math.numbers.concrete
-
The concrete number 2
- TWO - Static variable in class org.zfcj.math.numbers.concrete.Two
Z
- Zero - Class in org.zfcj.math.numbers.concrete
-
The concrete number 0
- ZERO - Static variable in class org.zfcj.math.numbers.concrete.Zero
ᐨ
- ᐨINFINITY - Static variable in class org.zfcj.math.numbers.NegativeInfinity
ᐩ
- ᐩINFINITY - Static variable in class org.zfcj.math.numbers.PositiveInfinity
All Classes and Interfaces|All Packages|Serialized Form