Expand description
Provides functions related to factorial calculations (e.g. binomial coefficient, factorial, multinomial)
Constants§
- MAX_
FACTORIAL - The maximum factorial representable by a 64-bit floating point without overflowing
Functions§
- binomial
- Computes the binomial coefficient
n choose k
wherek
andn
are non-negative values. - checked_
multinomial - Computes the multinomial coefficient:
n choose n1, n2, n3, ...
- factorial
- Computes the factorial function
x -> x!
for170 >= x >= 0
. All factorials larger than170!
will overflow anf64
. - ln_
binomial - Computes the natural logarithm of the binomial coefficient
ln(n choose k)
wherek
andn
are non-negative values - ln_
factorial - Computes the logarithmic factorial function
x -> ln(x!)
forx >= 0
. - multinomial
- Computes the multinomial coefficient:
n choose n1, n2, n3, ...