Expand description
Provides functions related to factorial calculations (e.g. binomial coefficient, factorial, multinomial)
Constants
The maximum factorial representable by a 64-bit floating point without overflowing
Functions
Computes the binomial coefficient n choose k
where k
and n
are non-negative values.
Computes the multinomial coefficient: n choose n1, n2, n3, ...
Computes the factorial function x -> x!
for
170 >= x >= 0
. All factorials larger than 170!
will overflow an f64
.
Computes the natural logarithm of the binomial coefficient
ln(n choose k)
where k
and n
are non-negative values
Computes the logarithmic factorial function x -> ln(x!)
for x >= 0
.
Computes the multinomial coefficient: n choose n1, n2, n3, ...