Problem with elliptic integrals

From the docs the elliptic integrals are defined using m as argument, not k, with k^{2} = m. Which means the numerator in your function is approximately m\pi/4, denominator m, hence you get a number approaching \pi/4.

2 Likes