Multinomial
The multinomial coefficient generalises Binomial to more than two parts.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wikipedia
Multinomial theoremMultinomial coefficientMathWorldMultinomialCoefficientWikidataQ20820114Britannicatopic/multinomial-coefficientWolfram LanguageMultinomial!SageMathmultinomial($*,)Juliaenumeratio_multinomial($*,)Multinomial(k_1, k_2, ...)the multinomial coefficient for parts Multinomial(k_1, k_2, …)The multinomial coefficient generalises Binomial to more than two parts.Typed signatures
| Type | Package | Applies |
|---|---|---|
(integer+) -> integer | analyticreplaces compute-engine | on Around, CenteredInterval, Interval |
(integer+) -> integer | compute-engine | always |
(any*) -> any | number-theoryreplaces analytic | always |
Details
- Counts the ways to split labeled items into groups of the given sizes.
- With two arguments it reduces to Binomial: .
- Orderless: permuting the arguments doesn't change the value.
- All-zero arguments and a single argument both reduce to the empty product, 1.
- compute-engine requires all-integer arguments; a list argument is threaded over element-wise, as Wolfram's Listable heads do.
Examples
1 more kept as data, checked against the oraclesScope #
Applications #
Properties #
Possible issues #
About
| Examples | 17 |
|---|---|
| Checked against | Wolfram Language 16 agree1 differSageMath 13 agree3 errormathlib4 12 agree2 errorJulia 14 agree1 error |
| Crosswalk | Wikipedia ×2MathWorldWikidataBritannicaWolfram LanguageSageMathJulia |
Implementation
mapped
sagepackages/oracle/src/mappings.tsmapped
juliapackages/oracle/src/mappings.tsmapped
mathlib4packages/oracle/src/mappings.tsNat.multinomial over the indices of the argument list, so the empty call is 1; natural arguments only.