the complete elliptic integral ( corresponding to \( \phi = \pi/2 \) ): \( \mathbf{D}(k) = \int_0^{\pi/2} \frac{\sin^2 t}{\sqrt{1-k^2\sin^2 t}}
\scriptstyle\;\mathrm{d}t\) is returned.
the incomplete elliptic integral of the first kind: \( \mathbf{D}(k) = \int_0^{\pi/2} \frac{\sin^2 t}{\sqrt{1-k^2\sin^2 t}}
\scriptstyle\;\mathrm{d}t\) is returned:
Note
Be aware that as \(\pi/2\) is not exactly represented by floating point values the result of the incomplete function with a \(\phi\) floating point value representing \(\pi/2\) can differ a lot with the result of the complete call.