Ramanujan's Lost Notebook Part II, Ch. 10: ch10K
DefinitionRamanujanLostNotebook_PartII_ch10_ch10Knumber-theoryramanujan-lost-notebook
Complete elliptic integral K(k), printed p.225. For 0<k<1 the positive square root has no zero on the integration interval.
Definition code
import Mathlib noncomputable section namespace RamanujanLostNotebook.PartII /-- Complete elliptic integral K(k), printed p.225. For 0<k<1 the positive square root has no zero on the integration interval. -/ noncomputable def ch10K (k : ℝ) : ℝ := ∫ u in (0 : ℝ)..(Real.pi / 2), 1 / Real.sqrt (1 - k ^ 2 * Real.sin u ^ 2) end RamanujanLostNotebook.PartII end
Source
G. E. Andrews and B. C. Berndt, Ramanujan's Lost Notebook, Part II, Springer 2009, Chapter 10.