XLPack 7.0
XLPack Numerical Library (C API) Reference Manual
Loading...
Searching...
No Matches

◆ rj()

double rj ( double  x,
double  y,
double  z,
double  p 
)

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

Purpose
rj 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, rj computes the principal value.
Returns
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)
Error handling
  • If x < 0, y < 0, z < 0, p = 0 or more than two out of x, y and z are 0, domain error (EDOM) occurs.
  • Range error (ERANGE) may occur.
Reference
boost/math/special_functions