Uses of Interface
org.zfcj.math.numbers.RealNumber
Packages that use RealNumber
Package
Description
Core numeric types for integer and
real-valued arithmetic
Provides the auto-generated
ConcreteNumber
abstract
base class along with its singleton sub-types Zero
,
One
, Two
, etc and supporting types-
Uses of RealNumber in org.zfcj.math.numbers
Subinterfaces of RealNumber in org.zfcj.math.numbersModifier and TypeInterfaceDescriptioninterface
Any integer number such as -12, 14, 0, 1 google, etc.interface
IrrationalNumber<N extends PositiveInteger>
AnIrrationalNumber
is aRealNumber
that is not aRationalNumber
.interface
ANaturalNumber
is a non-negativeInteger
interface
APositiveInteger
is aNaturalNumber
that isn'tZero
.interface
ARationalNumber
, also called a fraction, is aRealNumber
that can be defined as a ratio of twoInteger
s.Classes in org.zfcj.math.numbers that implement RealNumberModifier and TypeClassDescriptionfinal class
Represents an actualized negative infinity, denoted as -∞, aRealNumber
less than any otherRealNumber
final class
Represents an actualized positive infinity, denoted as +∞, aRealNumber
greater than any otherRealNumber
Methods in org.zfcj.math.numbers that return RealNumberModifier and TypeMethodDescriptiondefault RealNumber
RealNumber.abs()
Returns thisRealNumber
's absolute valueRealAbsoluteValue.apply
(RealNumber number) RealAddition.apply
(RealNumber r, RealNumber s) RealDivision.apply
(RealNumber r, RealNumber s) RealExponentiation.apply
(RealNumber r, RealNumber s) RealModulo.apply
(RealNumber t, RealNumber u) RealMultiplication.apply
(RealNumber r, RealNumber s) RealSubtraction.apply
(RealNumber r, RealNumber s) static RealNumber
RealAbsoluteValue.calculate
(RealNumber number) Calculates theRealNumber
that is the absolute value of the givenRealNumber
static RealNumber
RealAddition.calculate
(RealNumber r, RealNumber s) Calculates the sum of the givenRealNumber
s r and s and returns the resultstatic RealNumber
RealDivision.calculate
(RealNumber r, RealNumber s) Calculates the quotient of the givenRealNumber
s r and s and returns the resultstatic RealNumber
RealExponentiation.calculate
(RealNumber base, RealNumber exp) Calculates the power of exponentiation of the givenRealNumber
base and exponentstatic RealNumber
RealModulo.calculate
(RealNumber dividend, RealNumber divisor) Calculates the modulo of the givenRealNumber
sstatic RealNumber
RealMultiplication.calculate
(RealNumber r, RealNumber s) Calculates the product of multiplication of the givenRealNumber
factorsstatic RealNumber
RealSubtraction.calculate
(RealNumber minuend, RealNumber subtrahend) Calculates the difference of subtracting the givenRealNumber
sdefault RealNumber
RealNumber.dividedBy
(RealNumber n) Returns the quotient of dividing thisRealNumber
by the givenRealNumber
static RealNumber
FloatingPointMath.getRealMaxError()
default RealNumber
RealNumber.minus
(RealNumber n) Returns the difference between thisRealNumber
and the givenRealNumber
default RealNumber
RealNumber.modulo
(RealNumber n) Returns the remainder of dividing thisRealNumber
by the givenRealNumber
static RealNumber
RealNumber.of
(double d) Creates a newRealNumber
for the given double precision valuestatic RealNumber
RealNumber.of
(BigDecimal number) Creates a newRealNumber
for the givenBigInteger
valuedefault RealNumber
RealNumber.plus
(RealNumber n) Returns the sum of thisRealNumber
and the givenRealNumber
default RealNumber
RealNumber.pow
(RealNumber exponent) Returns the product of exponentiating thisRealNumber
by the givenRealNumber
default RealNumber
RealNumber.times
(RealNumber n) Returns the product of multiplying thisRealNumber
by the givenRealNumber
default RealNumber
RealNumber.truncate()
Truncates thisRealNumber
towardZERO
Methods in org.zfcj.math.numbers with parameters of type RealNumberModifier and TypeMethodDescriptiondefault boolean
RealNumber.almostEquals
(RealNumber n) Returns true if the givenRealNumber
is almost equal to thisRealNumber
where almost equal means that their absolute difference is less than FloatingPointMath.getRealMaxError()RealAbsoluteValue.apply
(RealNumber number) RealAddition.apply
(RealNumber r, RealNumber s) RealDivision.apply
(RealNumber r, RealNumber s) RealExponentiation.apply
(RealNumber r, RealNumber s) RealModulo.apply
(RealNumber t, RealNumber u) RealMultiplication.apply
(RealNumber r, RealNumber s) RealSubtraction.apply
(RealNumber r, RealNumber s) static RealNumber
RealAbsoluteValue.calculate
(RealNumber number) Calculates theRealNumber
that is the absolute value of the givenRealNumber
static RealNumber
RealAddition.calculate
(RealNumber r, RealNumber s) Calculates the sum of the givenRealNumber
s r and s and returns the resultstatic RealNumber
RealDivision.calculate
(RealNumber r, RealNumber s) Calculates the quotient of the givenRealNumber
s r and s and returns the resultstatic RealNumber
RealExponentiation.calculate
(RealNumber base, RealNumber exp) Calculates the power of exponentiation of the givenRealNumber
base and exponentstatic RealNumber
RealModulo.calculate
(RealNumber dividend, RealNumber divisor) Calculates the modulo of the givenRealNumber
sstatic RealNumber
RealMultiplication.calculate
(RealNumber r, RealNumber s) Calculates the product of multiplication of the givenRealNumber
factorsstatic RealNumber
RealSubtraction.calculate
(RealNumber minuend, RealNumber subtrahend) Calculates the difference of subtracting the givenRealNumber
sdefault int
Integer.compareTo
(RealNumber n) default int
IrrationalNumber.compareTo
(RealNumber n) int
NegativeInfinity.compareTo
(RealNumber n) int
PositiveInfinity.compareTo
(RealNumber n) default int
RealNumber.compareTo
(RealNumber n) default RealNumber
RealNumber.dividedBy
(RealNumber n) Returns the quotient of dividing thisRealNumber
by the givenRealNumber
default boolean
RealNumber.greaterThan
(RealNumber n) Returns true if thisRealNumber
is greater than the givenRealNumber
, false otherwisedefault boolean
RealNumber.greaterThanOrEqualTo
(RealNumber n) Returns true if thisRealNumber
is greater than or equal to the givenRealNumber
, false otherwisedefault boolean
RealNumber.lessThan
(RealNumber n) Returns true if thisRealNumber
is less than the givenRealNumber
, false otherwisedefault boolean
RealNumber.lessThanOrEqualTo
(RealNumber n) Returns true if thisRealNumber
is less than or equal to the givenRealNumber
, false otherwisedefault RealNumber
RealNumber.minus
(RealNumber n) Returns the difference between thisRealNumber
and the givenRealNumber
default RealNumber
RealNumber.modulo
(RealNumber n) Returns the remainder of dividing thisRealNumber
by the givenRealNumber
default RealNumber
RealNumber.plus
(RealNumber n) Returns the sum of thisRealNumber
and the givenRealNumber
default RealNumber
RealNumber.pow
(RealNumber exponent) Returns the product of exponentiating thisRealNumber
by the givenRealNumber
static void
FloatingPointMath.setRealMaxError
(RealNumber maxError) default RealNumber
RealNumber.times
(RealNumber n) Returns the product of multiplying thisRealNumber
by the givenRealNumber
-
Uses of RealNumber in org.zfcj.math.numbers.concrete
Subinterfaces of RealNumber in org.zfcj.math.numbers.concreteModifier and TypeInterfaceDescriptioninterface
AnInteger
that is at least some otherInteger
interface
AnInteger
no less than 8interface
AnInteger
no less than 18interface
AnInteger
no less than 11interface
AnInteger
no less than 15interface
AnInteger
no less than 5interface
AnInteger
no less than 4interface
AnInteger
no less than 14interface
AnInteger
no less than -1interface
AnInteger
no less than 9interface
AnInteger
no less than 19interface
AnInteger
no less than 1interface
AnInteger
no less than 7interface
AnInteger
no less than 17interface
AnInteger
no less than 6interface
AnInteger
no less than 16interface
AnInteger
no less than 10interface
AnInteger
no less than 13interface
AnInteger
no less than 3interface
AnInteger
no less than 12interface
AnInteger
no less than 20interface
AnInteger
no less than 2interface
AnInteger
no less than 0interface
AnInteger
that is at most some otherInteger
interface
AnInteger
no greater than 8interface
AnInteger
no greater than 18interface
AnInteger
no greater than 11interface
AnInteger
no greater than 15interface
AnInteger
no greater than 5interface
AnInteger
no greater than 4interface
AnInteger
no greater than 14interface
AnInteger
no greater than -1interface
AnInteger
no greater than 9interface
AnInteger
no greater than 19interface
AnInteger
no greater than 1interface
AnInteger
no greater than 7interface
AnInteger
no greater than 17interface
AnInteger
no greater than 6interface
AnInteger
no greater than 16interface
AnInteger
no greater than 10interface
AnInteger
no greater than 13interface
AnInteger
no greater than 3interface
AnInteger
no greater than 12interface
AnInteger
no greater than 20interface
AnInteger
no greater than 2interface
AnInteger
no greater than 0interface
The numberFour
or the numberEight
interface
NMinus1<N extends ConcreteNumber>
Represents anInteger
that is 1 less than some other (integer)ConcreteNumber
interface
NPlus1<N extends ConcreteNumber>
Represents anInteger
that is 1 more than some other (integer)ConcreteNumber
Classes in org.zfcj.math.numbers.concrete that implement RealNumberModifier and TypeClassDescriptionclass
AConcreteNumber
is anInteger
whose value is always the same specific integer and is identified by its type name.final class
The concrete number 8final class
The concrete number 18final class
The concrete number 11final class
The concrete number 15final class
The concrete number 5final class
The concrete number 4final class
The concrete number 14final class
The concrete number -1final class
The concrete number 9final class
The concrete number 19final class
The concrete number 1final class
The concrete number 7final class
The concrete number 17final class
The concrete number 6final class
The concrete number 16final class
The concrete number 10final class
The concrete number 13final class
The concrete number 3final class
The concrete number 12final class
The concrete number 20final class
The concrete number 2final class
The concrete number 0