Factorial (!)

Factorial (SymPy, mpmath, WMA)


Factorial[n]

n!

computes the factorial of n.

Factorial handles numeric (real and complex) values using the gamma function:

However, the value at poles is ComplexInfinity:

Factorial has the same operator (!) as Not, but with higher precedence:

Beta
Factorial2