We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Find the number of ways to choose k elements from a set of n elements.
Similar: factorial, binomial, multinomial.
function binomial(n, k) // n: elements in source set // k: elements in choose set
const xmath = require('extra-math'); xmath.binomial(4, 1); // → 4 xmath.binomial(4, 2); // → 6 xmath.binomial(4, 3); // → 4