Please enable JavaScript to view this site.

Vensim Help

Navigation: Reference Guide > Functions > Mathematical and Numeric Functions

FACTORIAL

Scroll Prev Top Next More

Returns the factorial of x.

Units:FACTORIAL(dimensionless) --> dimensionless (the argument must be dimensionless)

Examples

FACTORIAL(3) is equal to 3 x 2 x 1 (=6).

FACTORIAL(4) is equal to 4 x 3 x 2 x 1 (=24).

 

See also: FACTORIAL_LN.

Sample model: FACTORIAL.mdl in FunctionExamples