UNPKG

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

8 lines • 571 B
export var multinomialDocs = { name: 'multinomial', category: 'Probability', syntax: ['multinomial(a1, a2, ..., an)', 'multinomial(A)'], description: 'Computes the number of ways of dividing a1 + a2 + ... + an ' + 'distinct items into n unordered groups of sizes a1, a2, ..., an: ' + 'the multinomial coefficient (a1 + ... + an)! / (a1! ... an!). ' + 'Takes the ai as argument list, or one one-dimensional array or Matrix ' + 'of nonnegative integers.', examples: ['multinomial([1, 2, 1])', 'multinomial([2, 0, 1])'], seealso: ['combinations', 'factorial'] };