Uses of Class
de.tilman_neumann.jml.base.BigRational
-
Packages that use BigRational Package Description de.tilman_neumann.jml de.tilman_neumann.jml.base de.tilman_neumann.jml.precision -
-
Uses of BigRational in de.tilman_neumann.jml
Methods in de.tilman_neumann.jml that return BigRational Modifier and Type Method Description static BigRational
HarmonicNumbers. harmonic(int n)
Simple series computation of harmonic numbers H_{n} = 1/1 + 1/2 + 1/3 + ...static BigRational
HarmonicNumbers. harmonicPower(int n, int r)
Harmonic power series H_{n,r} = sum_{i=1..n} 1/i^r.static BigRational
HarmonicNumbers. hyperharmonic_closedForm(int n, int r)
Closed-form evaluation of "hyper-harmonic numbers" defined by
H_{n,1} = sum_{i=1..n} 1/i
H_{n,r} = sum_{i=1..n} H_{i,r-1}; r>1static BigRational
HarmonicNumbers. hyperharmonic_recurrent(int n, int r)
Recurrent computation of "hyper-harmonic numbers" defined by
H_{n,1} = sum_{i=1..n} 1/i
H_{n,r} = sum_{i=1..n} H_{i,r-1}; r>1 -
Uses of BigRational in de.tilman_neumann.jml.base
Fields in de.tilman_neumann.jml.base declared as BigRational Modifier and Type Field Description static BigRational
BigRational. ONE
static BigRational
BigRational. ONE_HALF
static BigRational
BigRational. ZERO
Methods in de.tilman_neumann.jml.base that return BigRational Modifier and Type Method Description BigRational
BigRational. abs()
BigRational
BigRational. add(BigRational b)
Computes the sum of this and the argument.BigRational
BigRational. divide(BigRational b)
Computes the fraction of this and the argument.BigRational
BigRational. divide(BigInteger b)
Computes the fraction of this and the argument.BigRational
BigRational. expandTo(BigInteger newDenominator)
BigRational
BigRational. multiply(BigRational b)
Computes the product of this and the argument.BigRational
BigRational. multiply(BigInteger b)
Computes the product of this and the argument.BigRational
BigRational. negate()
BigRational
BigRational. normalize()
BigRational
BigRational. reciprocal()
BigRational
BigRational. subtract(BigRational b)
Computes the subtraction of this and the argument.Methods in de.tilman_neumann.jml.base with parameters of type BigRational Modifier and Type Method Description static BigDecimal
BigDecimalMath. add(BigDecimal a, BigRational b, Scale resultScale)
Computes the sum of a and b accurate to the given resultScale.
Scale is the natural accuracy measure for additions because for each argument, each piece of it (bit, digit, ...) makes its own independent contribution to the result scale.BigRational
BigRational. add(BigRational b)
Computes the sum of this and the argument.int
BigRational. compareTo(BigRational other)
BigRational
BigRational. divide(BigRational b)
Computes the fraction of this and the argument.static BigDecimal
BigDecimalMath. multiply(BigDecimal a, BigRational b, Precision resultPrecision)
Computes the product of a and b.
Precision is the natural accuracy measure for multiplications because for each argument, each piece of it (bit, digit, ...) makes its own independent contribution to the result precision.static BigDecimal
BigDecimalMath. multiply(BigDecimal a, BigRational b, Scale resultScale)
BigRational
BigRational. multiply(BigRational b)
Computes the product of this and the argument.BigRational
BigRational. subtract(BigRational b)
Computes the subtraction of this and the argument. -
Uses of BigRational in de.tilman_neumann.jml.precision
Methods in de.tilman_neumann.jml.precision with parameters of type BigRational Modifier and Type Method Description static int
Magnitude. of(BigRational q)
-