/************************************************************************* * Incomplete elliptic integral of the second kind * * Approximates the integral * * * phi * - | | | 2 | E(phi_\m) = | sqrt( 1 - m sin t ) dt | | | | - | 0 | | of amplitude phi and modulus m, using the arithmetic - | geometric mean algorithm. | | ACCURACY: | | Tested at random arguments with phi in [-10, 10] and m in | [0, 1]. | Relative error: | arithmetic domain # trials peak rms | IEEE -10,10 150000 3.3e-15 1.4e-16 | | Cephes Math Library Release 2.8: June, 2000 | Copyright 1984, 1987, 1993, 2000 by Stephen L. Moshier *************************************************************************/ public static double IncompleteEllipticIntegralE(double phi, double m) { var result = Elliptic.IncompleteEllipticIntegralE(phi, m); return(result); }