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
15 lines (14 loc) • 365 B
JavaScript
export const permutationsDocs = {
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', 'combinationsWithRep', 'factorial']
}