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 BigRationalHarmonicNumbers. harmonic(int n)Simple series computation of harmonic numbers H_{n} = 1/1 + 1/2 + 1/3 + ...static BigRationalHarmonicNumbers. harmonicPower(int n, int r)Harmonic power series H_{n,r} = sum_{i=1..n} 1/i^r.static BigRationalHarmonicNumbers. 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 BigRationalHarmonicNumbers. 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 BigRationalBigRational. ONEstatic BigRationalBigRational. ONE_HALFstatic BigRationalBigRational. ZEROMethods in de.tilman_neumann.jml.base that return BigRational Modifier and Type Method Description BigRationalBigRational. abs()BigRationalBigRational. add(BigRational b)Computes the sum of this and the argument.BigRationalBigRational. divide(BigRational b)Computes the fraction of this and the argument.BigRationalBigRational. divide(BigInteger b)Computes the fraction of this and the argument.BigRationalBigRational. expandTo(BigInteger newDenominator)BigRationalBigRational. multiply(BigRational b)Computes the product of this and the argument.BigRationalBigRational. multiply(BigInteger b)Computes the product of this and the argument.BigRationalBigRational. negate()BigRationalBigRational. normalize()BigRationalBigRational. reciprocal()BigRationalBigRational. 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 BigDecimalBigDecimalMath. 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.BigRationalBigRational. add(BigRational b)Computes the sum of this and the argument.intBigRational. compareTo(BigRational other)BigRationalBigRational. divide(BigRational b)Computes the fraction of this and the argument.static BigDecimalBigDecimalMath. 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 BigDecimalBigDecimalMath. multiply(BigDecimal a, BigRational b, Scale resultScale)BigRationalBigRational. multiply(BigRational b)Computes the product of this and the argument.BigRationalBigRational. 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 intMagnitude. of(BigRational q)
-