XLPack 7.0
XLPack Numerical Library (Excel VBA) Reference Manual
Loading...
Searching...
No Matches

◆ Elli1_sub()

Sub Elli1_sub ( Ret As  Double,
Phi As  Double,
K As  Double,
Optional Info As  Long 
)

Incomplete elliptic integral of the first kind F(φ, k) (Subroutine version)

Purpose
Computes the Legendre form of incomplete elliptic integral of the first kind F(φ, k).
F(φ, k) = ∫ 1/sqrt(1 - k^2(sin(t))^2) dt [0, φ]
Parameters
[out]RetIncomplete elliptic integral of the first kind F(φ, k).
[in]PhiArgument φ [rad].
[in]KArgument k. (K^2*sin(Phi)^2 < 1 (if |Phi| > π/2, |K| <= 1))
[out]Info(Optional)
= 0: Successful exit.
= -2: The argument K had an illegal value. (K^2*sin(Phi)^2 > 1 (|K| > 1 if |Phi| > π/2))
= 1: Floating point range error.
Reference
boost/math/special_functions