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

◆ Rj()

Function Rj ( X As  Double,
Y As  Double,
Z As  Double,
P As  Double,
Optional Info As  Long 
)

Carlson form of elliptic integral RJ(x, y, z, p)

Purpose
Computes the Carlson form of elliptic integral RJ(x, y, z, p).
RJ(x, y, z, p) = (3/2) * ∫(t + x)^(-1/2)(t + y)^(-1/2)(t + z)^(-1/2)(t + p)^(-1)dt [0, ∞]
For negative fourth argument p, the principal value will be computed.
Returns
Double
Carlson form of elliptic integral RJ(x, y, z, p).
Parameters
[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))
[in]PArgument p. (P <> 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 or more than two out of X, Y and Z are 0)
= -4: The argument P had an illegal value. (P = 0)
= 1: Floating point range error.
Reference
boost/math/special_functions