Skip to main content

binom

Function binom 

Source
pub fn binom(n: i64, k: i64) -> Option<i64>
Expand description

The binomial coefficient C(n, k), with the integer continuations C(n, k) = (-1)^k C(k - n - 1, k) for negative n, and C(n, k) = (-1)^(n - k) C(-k - 1, n - k) for negative k. None where the result is outside i64.