See [sf.cmath.ellint.2].