Skip to main content

Module binomial_coefficients

Module binomial_coefficients 

Source
Expand description

Binomial coefficients.

See the book entry The gamma function and related functions.

Functionsยง

binomial_coefficient
Returns the binomial coefficient C(n, k).
binomial_coefficient_checked
Returns C(n, k) if it fits in a u64, otherwise None. C(n, k) is 0 when k > n.
ln_binomial_coefficient
Returns ln C(n, k) (negative infinity when k > n).