Algosim documentation: gamma

gamma

The gamma function.

Syntax

Description

The gamma function is an extension of the shifted factorial function n ↦ (n − 1)! to the entire complex plane except for the non-positive integers {0, −1, −2, ...}.

Notes

If you use the gamma function frequently, you may want to assign it to the Γ symbol:

Γ ≔ gamma

Examples

gamma(6)
120
gamma(π)
2.28803779534
gamma(−1/2)
−3.54490770181
gamma(i)
−0.154949828302 − 0.498015668118⋅i
Γ ≔ gamma
gamma
Γ(5)
24

See also