the complete ( corresponding to \( \phi = \pi/2 \) )of the second kind: \(\mathbf{E}(k) = \int_0^{\pi/2} \scriptstyle \sqrt{1-k\sin^2 t}\,\mathrm{d}t\) is returned.
the incomplete elliptic integrals of the second kind: \( \mathbf{E}(\phi, k) = \int_0^{\phi} \scriptstyle \sqrt{1-k\sin^2 t}\,\mathrm{d}t\) is returned. \(\alpha\) is \(\sin k\) and \(m\) is \(\sqrt(k)\)
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.