gamma
Gamma special function
📝Syntax
R = gamma(M)
📥Input Arguments
Parameter Description
M a real single or real double matrix.
📤Output Arguments
Parameter Description
R result of gamma function.
📄Description

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:

💡Examples
R = gamma([-pi:0.1:pi])
🔗See Also
gammalnfactorial
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub