Wilang Documentation1.0.0+4

factorial#

Compute the factorial of a value

Available in: math cells, REPL.

Syntax#

n!
factorial(n)

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
factorial(2)

Expected result: 2.

See also#

combinations · combinationsWithRep · permutations · gamma

All functions · Math guides