Package | Description |
---|---|
org.mathIT.numbers |
Provides classes for number theory.
|
Modifier and Type | Method and Description |
---|---|
Rational |
Rational.add(Rational n)
Returns the rational number k = m + n where
m is this rational number.
|
static Rational |
Numbers.bernoulli(int n)
Returns the Bernoulli number Bn of the nonnegative integer
n.
|
static Rational[] |
Numbers.bernoulliNumbers(int n)
Returns an array of n+1 rational numbers with entry number j
representing the Bernoulli number Bj, j = 0, 1, ..., n.
|
Rational |
Rational.divide(BigInteger n)
Returns the rational number k = m/n where
m is this rational number.
|
Rational |
Rational.divide(long n)
Returns the rational number k = m/n where
m is this rational number.
|
Rational |
Rational.divide(Rational n)
Returns the rational number k = m/n where
m is this rational number.
|
Rational |
Rational.minus(Rational n)
Returns the rational number k = m - n where
m is this rational number.
|
Rational |
Rational.multiply(BigInteger n)
Returns the rational number k = mn where
m is this rational number.
|
Rational |
Rational.multiply(Rational n)
Returns the rational number k = mn where
m is this rational number.
|
Rational |
Rational.negate()
Returns the negative of this rational number.
|
Rational |
Rational.plus(Rational n)
Returns the rational number k = m + n where
m is this rational number.
|
Rational |
Rational.reciprocal()
Returns the reciprocal 1/n of this rational n.
|
Rational |
Rational.subtract(Rational n)
Returns the rational number k = m - n where
m is this rational number.
|
Modifier and Type | Method and Description |
---|---|
Rational |
Rational.add(Rational n)
Returns the rational number k = m + n where
m is this rational number.
|
Rational |
Rational.divide(Rational n)
Returns the rational number k = m/n where
m is this rational number.
|
Rational |
Rational.minus(Rational n)
Returns the rational number k = m - n where
m is this rational number.
|
Rational |
Rational.multiply(Rational n)
Returns the rational number k = mn where
m is this rational number.
|
Rational |
Rational.plus(Rational n)
Returns the rational number k = m + n where
m is this rational number.
|
Rational |
Rational.subtract(Rational n)
Returns the rational number k = m - n where
m is this rational number.
|