-
Couldn't load subscription status.
- Fork 0
binomial
Subhajit Sahu edited this page Jul 29, 2022
·
17 revisions
Finds ways to choose k elements from a set of n elements.
Similar: binomial, multinomial.
math.binomial(n, k);
// n: elements in source set
// k: elements in choose setconst math = require("extra-math");
math.binomial(4, 1);
// 4
math.binomial(4, 2);
// 6
math.binomial(4, 3);
// 4