-
Notifications
You must be signed in to change notification settings - Fork 2
factorial
Subhajit Sahu edited this page Aug 9, 2022
·
1 revision
Find the factorial of a bigint.
Similar: factorial, binomial, multinomial.
function factorial(n, k)
// n: a bigint
// k: denominator factorial [0]
const xbigint = require('extra-bigint');
xbigint.factorial(5n);
// → 120n
xbigint.factorial(6n);
// → 720n
xbigint.factorial(7n);
// → 5040n