mars.tensor.special.
gamma
gamma function.
The gamma function is defined as
for \(\Re(z) > 0\) and is extended to the rest of the complex plane by analytic continuation. See [dlmf] for more details.
z (array_like) – Real or complex valued argument
Values of the gamma function
scalar or ndarray
Notes
The gamma function is often referred to as the generalized factorial since \(\Gamma(n + 1) = n!\) for natural numbers \(n\). More generally it satisfies the recurrence relation \(\Gamma(z + 1) = z \cdot \Gamma(z)\) for complex \(z\), which, combined with the fact that \(\Gamma(1) = 1\), implies the above identity for \(z = n\).
References
NIST Digital Library of Mathematical Functions https://dlmf.nist.gov/5.2#E1