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

◆ Rf_sub()

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

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

Purpose
Computes the Carlson form of elliptic integral RF(x, y, z).
RF(x, y, z) = (1/2) * ∫(t + x)^(-1/2)(t + y)^(-1/2)(t + z)^(-1/2) dt [0, ∞]
Parameters
[out]RetCarlson form of elliptic integral RF(x, y, z).
[in]XArgument x. (X >= 0 (one of X, Y and Z may be zero))
[in]YArgument y. (Y >= 0 (one of X, Y and Z may be zero))
[in]ZArgument z. (z >= 0 (one of X, Y and Z may be zero))
[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 or more than two out of X, Y and Z are 0)
= 1: Floating point range error.
Reference
boost/math/special_functions