gamma
gamma(n)
Compute the gamma function. For small values, the Lanczos approximation is used, and for large values the extended Stirling approximation.
Try it yourself:
$1 | gamma(4)
| |
$2 | 3!
| |
$3 | gamma(1/2)
| |
$4 | sqrt(pi)
|
See also:
All functions