XLPack 7.0
XLPack Numerical Library (C API) Reference Manual
Loading...
Searching...
No Matches

◆ elli2()

double elli2 ( double  phi,
double  k 
)

Incomplete elliptic integral of the second kind E(phi, k)

Purpose
elli2 computes the Legendre form of incomplete elliptic integral of the second kind E(φ, k).
E(φ, k) = ∫ sqrt(1 - k^2(sin(t))^2) dt [0, φ]
Returns
Incomplete elliptic integral of the second kind E(φ, k).
Parameters
[in]phiArgument φ [rad].
[in]kArgument k. (k^2*sin(phi)^2 <= 1 (if |phi| > π/2, |k| <= 1))
Error handling
  • If k^2*sin(phi)^2 > 1 (|k| > 1 if |phi| > π/2), domain error (EDOM) occurs.
  • Range error (ERANGE) may occur.
Reference
boost/math/special_functions