R = gamma(M)
| Parameter | Description |
|---|---|
| M | a real single or real double matrix. |
| Parameter | Description |
|---|---|
| R | result of gamma function. |
gamma computes the gamma function.
The gamma function is defined by the integral:
$$\Gamma(z) = \int_0^{\infty} t^{z-1} e^{-t} \, dt$$for
$$\text{Re}(z) > 0$$The gamma function extends the factorial function to real and complex numbers:
$$\Gamma(n) = (n-1)!$$for positive integers
$$n$$Key properties include:
R = gamma([-pi:0.1:pi])
| Version | Description |
|---|---|
| 1.0.0 | initial version |