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

◆ Rg_sub()

Sub Rg_sub ( Ret As  Double,
X As  Double,
Y As  Double,
Z As  Double,
Optional Info As  Long 
)

Carlson form of elliptic integral RG(x, y, z) (Subroutine version)

Purpose
Computes the Carlson form of elliptic integral RG(x, y, z).
RG(x, y, z) = (1/4π) * ∫∫√(x sin^2θ cos^2φ + y sin^2θ sin^2φ + z cos^2θ) sinθ dθdφ [θ: 0, π] [φ: 0, 2π]
Parameters
[out]RetCarlson form of elliptic integral RG(x, y, z).
[in]XArgument x. (X >= 0)
[in]YArgument y. (Y >= 0)
[in]ZArgument z. (Z >= 0)
[out]Info(Optional)
= 0: Successful exit.
= -1: The argument X had an illegal value. (X < 0)
= -2: The argument Y had an illegal value. (Y < 0)
= -3: The argument Z had an illegal value. (Z < 0)
= 1: Floating point range error.
Reference
boost/math/special_functions