From abbc302c8d2e09f51b7908ff8b4ee48135fc09ca Mon Sep 17 00:00:00 2001 From: Devan Patel Date: Fri, 8 May 2015 13:38:36 -0400 Subject: [PATCH] Documentation for Mutlinomial --- docs/reference/functions/multinomial.md | 41 +++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 docs/reference/functions/multinomial.md diff --git a/docs/reference/functions/multinomial.md b/docs/reference/functions/multinomial.md new file mode 100644 index 000000000..98e77c30f --- /dev/null +++ b/docs/reference/functions/multinomial.md @@ -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) + + +