A B C D E F G H I L M N O P R S T Z
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- abs() - Method in class fr.spacefox.jrational.Rational
-
Return the absolute value of the current rational.
- add(Rational) - Method in class fr.spacefox.jrational.Rational
-
Returns a Rational whose value is
(this + val) - addAll(Rational...) - Method in class fr.spacefox.jrational.Rational
-
Adds all the rationals in the collection to the current one.
- addAll(Collection<Rational>) - Method in class fr.spacefox.jrational.Rational
-
Adds all the rationals in the collection to the current one.
- APPROX_ONE - Static variable in class fr.spacefox.jrational.Rational
- APPROX_ZERO - Static variable in class fr.spacefox.jrational.Rational
- approximate() - Method in class fr.spacefox.jrational.Rational
-
Returns an approximation of this Rational with the denominator is
<= 2^128. - approximate(long) - Method in class fr.spacefox.jrational.Rational
-
Returns an approximation of this Rational with the denominator is
<= denominatorMax. - approximate(BigInteger) - Method in class fr.spacefox.jrational.Rational
-
Returns an approximation of this Rational with the denominator is
<= denominatorMax. - average(Collection<Rational>) - Static method in class fr.spacefox.jrational.Rational
-
Computes the average value of the
Rational’sCollectionprovided.
B
- bigDecimalValue() - Method in class fr.spacefox.jrational.Rational
-
Returns the value of the specified number as a
BigDecimal. - bigIntegerValue() - Method in class fr.spacefox.jrational.Rational
-
Returns the value of the specified number as a
BigInteger.
C
- canonicalForm() - Method in class fr.spacefox.jrational.Rational
-
Returns the canonical form of this Rational.
- compareTo(Rational) - Method in class fr.spacefox.jrational.Rational
-
Compares this
Rationalwith the specifiedRational.
D
- divide(Rational) - Method in class fr.spacefox.jrational.Rational
- doubleValue() - Method in class fr.spacefox.jrational.Rational
E
- E - Static variable in class fr.spacefox.jrational.RationalConstants
-
The
Rationalvalue that is closer than any other to e, the base of the natural logarithms, with enough precision to not be modified byapproximate()method, canonical form. - equals(Object) - Method in class fr.spacefox.jrational.Rational
-
Compares this
Rationalwith the specifiedObjectfor equality.
F
- floatValue() - Method in class fr.spacefox.jrational.Rational
- fr.spacefox.jrational - module fr.spacefox.jrational
- fr.spacefox.jrational - package fr.spacefox.jrational
-
Immutable rational numbers.
G
- ge(Rational) - Method in class fr.spacefox.jrational.Rational
-
Shortcut for
compareTo(val) >= 0. - gt(Rational) - Method in class fr.spacefox.jrational.Rational
-
Shortcut for
compareTo(val) > 0.
H
- hashCode() - Method in class fr.spacefox.jrational.Rational
I
- intValue() - Method in class fr.spacefox.jrational.Rational
- inverse() - Method in class fr.spacefox.jrational.Rational
-
Inverts the current rational.
- isApproximate() - Method in class fr.spacefox.jrational.Rational
- isInteger() - Method in class fr.spacefox.jrational.Rational
L
- le(Rational) - Method in class fr.spacefox.jrational.Rational
-
Shortcut for
compareTo(val) <= 0. - longValue() - Method in class fr.spacefox.jrational.Rational
- lt(Rational) - Method in class fr.spacefox.jrational.Rational
-
Shortcut for
compareTo(val) < 0.
M
- magnitude() - Method in class fr.spacefox.jrational.Rational
-
Returns the number of bits in the minimal representation of this Rational, excluding a sign bit.
- max(Rational) - Method in class fr.spacefox.jrational.Rational
-
Select the largest
Rationalbetween thisRationaland the specifiedRational. - max(Rational...) - Static method in class fr.spacefox.jrational.Rational
-
The largest
Rationalin the array provided. - max(Collection<Rational>) - Static method in class fr.spacefox.jrational.Rational
-
The largest
Rationalin theCollectionprovided. - median(Collection<Rational>) - Static method in class fr.spacefox.jrational.Rational
-
Compute the median value of the
Rational’sCollectionprovided. - min(Rational) - Method in class fr.spacefox.jrational.Rational
-
Select the smallest
Rationalbetween thisRationaland the specifiedRational. - min(Rational...) - Static method in class fr.spacefox.jrational.Rational
-
The smallest
Rationalin the array provided. - min(Collection<Rational>) - Static method in class fr.spacefox.jrational.Rational
-
The smallest
Rationalin theCollectionprovided. - multiply(Rational) - Method in class fr.spacefox.jrational.Rational
-
Returns a rational whose value is
this * val - multiplyAll(Rational...) - Method in class fr.spacefox.jrational.Rational
- multiplyAll(Collection<Rational>) - Method in class fr.spacefox.jrational.Rational
N
O
- of(double) - Static method in class fr.spacefox.jrational.Rational
-
This builder is provided to simplify some kind of interfaces and should not be used only unless you know exactly what you are doing!
- of(long) - Static method in class fr.spacefox.jrational.Rational
-
Builds an integer "rational" number from a
longvalue. - of(long, long) - Static method in class fr.spacefox.jrational.Rational
-
Builds a rational number from two
longvalues. - of(String) - Static method in class fr.spacefox.jrational.Rational
-
Shortcut for
of(new BigDecimal(s)) - of(String, String) - Static method in class fr.spacefox.jrational.Rational
-
Shortcut for
of(new BigInteger(numerator), new BigInteger(denominator)) - of(BigDecimal) - Static method in class fr.spacefox.jrational.Rational
-
Builds a rational number from a
BigDecimalvalue. - of(BigInteger) - Static method in class fr.spacefox.jrational.Rational
-
Builds an integer "rational" number from a non-null
BigIntegervalue. - of(BigInteger, BigInteger) - Static method in class fr.spacefox.jrational.Rational
-
Builds a rational number from two non-null
BigIntegervalues. - ONE - Static variable in class fr.spacefox.jrational.Rational
P
- PI - Static variable in class fr.spacefox.jrational.RationalConstants
-
The
Rationalvalue that is closer than any other to pi, the ratio of the circumference of a circle to its diameter, with enough precision to not be modified byapproximate()method, canonical form. - pow(int) - Method in class fr.spacefox.jrational.Rational
- product(Rational...) - Static method in class fr.spacefox.jrational.Rational
- product(Collection<Rational>) - Static method in class fr.spacefox.jrational.Rational
R
- Rational - Class in fr.spacefox.jrational
-
Immutable rational numbers.
- RationalConstants - Class in fr.spacefox.jrational
-
Some constants expressed as a
Rationalwith enough precision to not be modified byapproximate().
S
- signum() - Method in class fr.spacefox.jrational.Rational
- subtract(Rational) - Method in class fr.spacefox.jrational.Rational
- sum(Rational...) - Static method in class fr.spacefox.jrational.Rational
-
Returns the sum of all Rational in the array.
- sum(Collection<Rational>) - Static method in class fr.spacefox.jrational.Rational
-
Returns the sum of all Rational in the collection.
T
- toString() - Method in class fr.spacefox.jrational.Rational
Z
A B C D E F G H I L M N O P R S T ZAll Classes All Packages