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

◆ Rc()

Function Rc ( X As  Double,
Y As  Double,
Optional Info As  Long 
)

Carlson form of elliptic integral RC(x, y)

Purpose
Computes the Carlson form of elliptic integral RC(x, y).
RC(x, y) = (1/2) * ∫ (t + x)^(-1/2)(t + y)^(-1) dt [0, ∞]
For negative second argument y, the principal value will be computed.
Returns
Double
Carlson form of elliptic integral RC(x, y).
Parameters
[in]XArgument x. (X >= 0)
[in]YArgument y. (Y <> 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)
= 1: Floating point range error.
Reference
boost/math/special_functions