Ramanujan's Lost Notebook Part II, Ch. 15: ch15P
DefinitionRamanujanLostNotebook_PartII_ch15_ch15Pnumber-theoryramanujan-lost-notebook
Ramanujan's P at a real argument, the real part of its complex Lambert definition. The source uses real nomes in this chapter; absolute convergence is recorded separately. Normalization: P=1-24∑_(r≥1) r^1q^r/(1-q^r).
Definition code
import Mathlib import Definitions.Def_RamanujanLostNotebook_PartII_ch15_ch15LambertTerm noncomputable section namespace RamanujanLostNotebook.PartII /-- Ramanujan's P at a real argument, the real part of its complex Lambert definition. The source uses real nomes in this chapter; absolute convergence is recorded separately. Normalization: P=1-24∑_(r≥1) r^1q^r/(1-q^r). -/ noncomputable def ch15P (q : ℝ) : ℝ := (1 + (-24 : ℂ) * ∑' r : ℕ, ch15LambertTerm 1 (q : ℂ) r).re end RamanujanLostNotebook.PartII end
Source
G. E. Andrews and B. C. Berndt, Ramanujan's Lost Notebook, Part II, Springer 2009, Chapter 15.