Skip to main content

binom

Function binom 

Source
pub fn binom(n: f64, k: f64) -> f64
Expand description

Binomial coefficient considered as a function of two real variables

For real arguments, the binomial coefficient is defined as

$$ \begin{align*} \binom{n}{k} &= {\Gamma(n+1) \over \Gamma(k+1) \ \Gamma(n-k+1) } \\ &= {1 \over (n+1) \ \Beta(k+1,\, n-k+1)} \end{align*} $$

Where $\Gamma$ is the Gamma function (gamma) and $\Beta$ the Beta function (beta).

Corresponds to scipy.special.binom.

§See also

  • comb integer version “$n$ choose $k$”