Skip to main content

gamma

Function gamma 

Source
pub fn gamma<T: GammaArg>(z: T) -> T
Expand description

Gamma function $\Gamma(z)$ for real or complex argument.

It is defined as 1:

$$ \Gamma(z) = \int_0^\infty t^{z-1} e^{-t} \dd t , $$

for $\Re(z) > 0$, and is extended to the complex plane by analytic continuation.

§Type Parameters

§See also

  • gammainc: Regularized lower incomplete gamma function, $P(a,x)$
  • gammaincc: Regularized upper incomplete gamma function, $Q(a,x)$
  • gammaln: Natural logarithm of the absolute value of the gamma function
  • rgamma: Reciprocal of the gamma function, $1 \over \Gamma(z)$
  • scipy.special.gamma: Corresponding function in SciPy

  1. NIST Digital Library of Mathematical Functions, https://dlmf.nist.gov/5.2.E1. ↩