Wilang Documentation1.0.0+4

permutations#

Compute the number of permutations of n items taken k at a time

Available in: math cells, REPL.

Syntax#

permutations(n)
permutations(n, k)

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
permutations(5)

Expected result: 120.

See also#

combinations · combinationsWithRep · factorial

All functions · Math guides