Function binom
pub fn binom(n: u64, k: u64) -> Result<i64, EcoString>
Expand description
Calculates a binomial coefficient.
Returns the k
-combination of n
, or the number of ways to choose k
items from a set of n
without regard to order.
#calc.binom(10, 5)