Gamma

Gamma function (SymPy, mpmath, WMA)

The gamma function is one commonly used extension of the factorial function applied to complex numbers, and is defined for all complex numbers except the non-positive integers.


Gamma[z]

is the Euler gamma function, $\Gamma(z)$ on the complex number z.

Gamma[a, z]

is the upper incomplete gamma function, $\Gamma(a, z)$.

Gamma[a, $z_0$, $z_1$]

is the generalized incomplete gamma function $\Gamma[a, z_0] - \Gamma(a, z_1)$.

Gamma[z] is equivalent to $(z - 1)!$:

Examples of using Gamma with exact numeric arguments:

Examples of Gamma with symbolic arguments:

Both Gamma and Factorial functions are continuous:

Factorial2
LogGamma