Next: The Floor Function
Up: Mathematical Functions
Previous: The Exponential Function
Calling Sequence:
factorial(x)
x!
Parameters:
Returns: posint
Synopsis:
Returns the result of the factorial function:
Large values of x are approximated by a variant of the gamma function.
References: [1]
Examples:
> factorial(0);
> factorial(5);
> factorial(120);
Gaston Gonnet
1998-09-15