The digamma function #
This file defines the digamma function as the logarithmic derivative of the Gamma function and proves some basic properties.
Main definitions #
Complex.digamma: The digamma function of a complex variable.
Main statements #
Complex.digamma_apply_add_one: The digamma function satisfies the functional equationdigamma (s + 1) = digamma s + s⁻¹.Complex.digamma_apply_add_nat: The iterated recurrencedigamma (s + n) = digamma s + ∑ k ∈ Finset.range n, (s + k)⁻¹.Complex.digamma_nat_add_one: The digamma function at positive integers, in terms of harmonic numbers:digamma (n + 1) = harmonic n - eulerMascheroniConstant.Complex.digamma_one_sub: Euler's reflection formuladigamma (1 - s) = digamma s + π * cot (π * s).Complex.digamma_two_mul: The duplication formuladigamma (2 * s) = (1 / 2) * (digamma s + digamma (s + 1 / 2)) + log 2.Complex.meromorphic_digamma: The digamma function is meromorphic.
TODO #
- Prove Gauss' integral representation of the digamma function.
The digamma function, defined as the logarithmic derivative of the Gamma function.
Equations
Instances For
The digamma function at a positive integer, in terms of harmonic numbers.
The digamma duplication formula ψ(2s) = ½(ψ(s) + ψ(s + ½)) + log 2, for
2s ∉ {0, -1, -2, …}, which is equivalent to s and s + ½ both avoiding the poles of ψ.
Proved from Legendre's doubling Complex.Gamma_mul_Gamma_add_half by taking logarithmic
derivatives.