Skip to content

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 set
const math = require("extra-math");

math.binomial(4, 1);
// 4

math.binomial(4, 2);
// 6

math.binomial(4, 3);
// 4


References

Clone this wiki locally