mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-18 14:59:29 +00:00
Documentation for Mutlinomial
This commit is contained in:
parent
adc96a9b2e
commit
abbc302c8d
41
docs/reference/functions/multinomial.md
Normal file
41
docs/reference/functions/multinomial.md
Normal file
@ -0,0 +1,41 @@
|
||||
# Function multinomial
|
||||
|
||||
Computes the sum taken over all combinations of nonnegative integers such that the sum of all indices is n.
|
||||
|
||||
Multinomial only takes an array of integers greater than or equal to 0.
|
||||
|
||||
|
||||
## Syntax
|
||||
|
||||
```js
|
||||
math.multinomial(array)
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Parameter | Type | Description
|
||||
--------- | ---- | -----------
|
||||
`array` | Array | | An array of all integers to find the sum of all combinations
|
||||
|
||||
### Returns
|
||||
|
||||
Type | Description
|
||||
---- | -----------
|
||||
Number | BigNumber | Computed sum
|
||||
|
||||
|
||||
## Examples
|
||||
|
||||
```js
|
||||
math.multinomial([2,0,1]); // returns 3
|
||||
```
|
||||
|
||||
|
||||
## See also
|
||||
|
||||
[permutations](permutations.md),
|
||||
[factorial](factorial.md),
|
||||
[combinations](combinations.md)
|
||||
|
||||
|
||||
<!-- Note: This file is automatically generated from source code comments. Changes made in this file will be overridden. -->
|
||||
Loading…
x
Reference in New Issue
Block a user