The Gamma function #
This file defines the Γ function (of a real or complex variable s). We define this by Euler's
integral Γ(s) = ∫ x in Ioi 0, exp (-x) * x ^ (s - 1) in the range where this integral converges
(i.e., for 0 < s in the real case, and 0 < re s in the complex case).
We show that this integral satisfies Γ(1) = 1 and Γ(s + 1) = s * Γ(s); hence we can define
Γ(s) for all s as the unique function satisfying this recurrence and agreeing with Euler's
integral in the convergence range. In the complex case we also prove that the resulting function is
holomorphic on ℂ away from the points {-n : n ∈ ℤ}.
Tags #
Gamma
Euler's integral for the Γ function (of a real variable s), defined as
∫ x in Ioi 0, exp (-x) * x ^ (s - 1).
See Gamma_integral_convergent for a proof of the convergence of the integral for 0 < s.
The integral defining the Γ function converges for positive real s.
The integral defining the Γ function converges for complex s with 0 < re s.
This is proved by reduction to the real case.
Euler's integral for the Γ function (of a complex variable s), defined as
∫ x in Ioi 0, exp (-x) * x ^ (s - 1).
See complex.Gamma_integral_convergent for a proof of the convergence of the integral for
0 < re s.
Now we establish the recurrence relation Γ(s + 1) = s * Γ(s) using integration by parts.
The recurrence relation for the Γ integral.
Now we define Γ(s) on the whole complex plane, by recursion.
The nth function in this family is Γ(s) if -n < s.re, and junk otherwise.
Equations
- complex.Gamma_aux (n + 1) = λ (s : ℂ), complex.Gamma_aux n (s + 1) / s
- complex.Gamma_aux 0 = complex.Gamma_integral
Now check that the Γ function is differentiable, wherever this makes sense.
Absolute convergence of the integral which will give the derivative of the Γ function on
1 < re s.
A uniform bound for the s-derivative of the Γ integrand for s in vertical strips.
The derivative of the Γ integral, at any s ∈ ℂ with 1 < re s, is given by the integral
of exp (-x) * log x * x ^ (s - 1) over [0, ∞).