UNPKG

848 BMarkdownView Raw
1<!-- Note: This file is automatically generated from source code comments. Changes made in this file will be overridden. -->
2
3# Function multinomial
4
5Multinomial Coefficients compute the number of ways of picking a1, a2, ..., ai unordered outcomes from `n` possibilities.
6
7multinomial takes one array of integers as an argument.
8The following condition must be enforced: every ai <= 0
9
10
11## Syntax
12
13```js
14math.multinomial(a) // a is an array type
15```
16
17### Parameters
18
19Parameter | Type | Description
20--------- | ---- | -----------
21`a` | number[] &#124; BigNumber[] | Integer numbers of objects in the subset
22
23### Returns
24
25Type | Description
26---- | -----------
27Number &#124; BigNumber | Multinomial coefficient.
28
29
30## Examples
31
32```js
33math.multinomial([1,2,1]) // returns 12
34```
35
36
37## See also
38
39[combinations](combinations.md),
40[factorial](factorial.md)
41
\No newline at end of file