public class Combinatoric extends java.lang.Object
| Constructor and Description |
|---|
Combinatoric() |
| Modifier and Type | Method and Description |
|---|---|
static BigInteger |
binCoeff(int n,
int k)
Integer binomial coefficient. n and k are beta-integers with 0 less than
or equal to k less than or equal to n.
|
static BigInteger |
binCoeffInduction(BigInteger A,
long n,
long k)
Integer binomial coefficient induction. n and k are beta-integers with 0
less than or equal to k less than or equal to n.
|
static BigInteger |
binCoeffSum(int n,
int k)
Integer binomial coefficient partial sum. n and k are integers, 0 le k le
n.
|
static BigInteger |
factorial(long n)
Factorial.
|
public Combinatoric()
public static BigInteger binCoeffInduction(BigInteger A, long n, long k)
A - previous induction result.n - long.k - long.public static BigInteger binCoeff(int n, int k)
n - long.k - long.public static BigInteger binCoeffSum(int n, int k)
n - long.k - long.public static BigInteger factorial(long n)
n - integer.