|
|
◆ Rc_sub()
| Sub Rc_sub |
( |
Ret As |
Double, |
|
|
X As |
Double, |
|
|
Y As |
Double, |
|
|
Optional Info As |
Long |
|
) |
| |
Carlson form of elliptic integral RC(x, y) (Subroutine version)
- 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.
- Parameters
-
| [out] | Ret | Carlson form of elliptic integral RC(x, y). |
| [in] | X | Argument x. (X >= 0) |
| [in] | Y | Argument 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
|