public class MathTools
extends java.lang.Object
Constructor and Description |
---|
MathTools() |
Modifier and Type | Method and Description |
---|---|
static java.math.BigInteger |
factorial(int n)
Computes factorial.
|
static java.math.BigInteger |
over(int n,
int k) |
public static java.math.BigInteger factorial(int n)
n
- input valuepublic static java.math.BigInteger over(int n, int k)
n
- top coefficient. Positive numberk
- bottom coeffiecient, in range [1, n].