mathjs
Version:
Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with dif
10 lines (9 loc) • 330 B
JavaScript
;
module.exports = {
'name': 'permutations',
'category': 'Probability',
'syntax': ['permutations(n)', 'permutations(n, k)'],
'description': 'Compute the number of permutations of n items taken k at a time',
'examples': ['permutations(5)', 'permutations(5, 3)'],
'seealso': ['combinations', 'factorial']
};