Wilang Documentation1.0.0+4

multinomial#

Multinomial Coefficients compute the number of ways of picking a1, a2, ..., ai unordered outcomes from n possibilities. multinomial takes one array of integers as an argument. The following condition must be enforced: every ai > 0.

Available in: math cells, REPL.

Syntax#

multinomial(A)

Arguments and behavior#

Integer counts must satisfy the function domain. Random functions do not promise a fixed sample. The example returns scalar (number).

Example#

Edit the inputs, then use Run or Reset. Changes stay in this example.

Example
multinomial([1, 2, 1])

Expected result: 12.

See also#

combinations · factorial

All functions · Math guides