Ramanujan's Lost Notebook Part IV, Ch. 4: ramanujanGammaH
DefinitionRamanujanLostNotebook_PartIV_ch04_ramanujanGammaHnumber-theoryramanujan-lost-notebook
h(x) = ((e/x)^x Γ(1+x)/√π)^6 - (8x³ + 4x² + x), equations (4.5.3)–(4.5.4) of the book;
Ramanujan's θ_x is 30 * ramanujanGammaH x. Intended for x > 0.
Definition code
import Mathlib
namespace RamanujanLostNotebook.PartIV
/-- `h(x) = ((e/x)^x Γ(1+x)/√π)^6 - (8x³ + 4x² + x)`, equations (4.5.3)–(4.5.4) of the book;
Ramanujan's `θ_x` is `30 * ramanujanGammaH x`. Intended for `x > 0`. -/
noncomputable def ramanujanGammaH (x : ℝ) : ℝ :=
((Real.exp 1 / x) ^ x * Real.Gamma (1 + x) / Real.sqrt Real.pi) ^ (6 : ℕ) -
(8 * x ^ (3 : ℕ) + 4 * x ^ (2 : ℕ) + x)
end RamanujanLostNotebook.PartIV
Source
G. E. Andrews and B. C. Berndt, Ramanujan's Lost Notebook, Part IV, Springer 2013, Chapter 4.