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

◆ rg()

double rg ( double  x,
double  y,
double  z 
)

Carlson form of elliptic integral RG(x, y, z)

Purpose
rg computes the Carlson form of elliptic integral RG(x, y, z).
RG(x, y, z) = (1/4π) * ∫∫√(x sin^2θ cos^2φ + y sin^2θ sin^2φ + z cos^2θ) sinθ dθdφ [θ: 0, π] [φ: 0, 2π]
Returns
Carlson form of elliptic integral RG(x, y, z).
Parameters
[in]xArgument x. (x >= 0)
[in]yArgument y. (y >= 0)
[in]zArgument z. (z >= 0)
Error handling
  • If x < 0, y < 0 or z < 0, domain error (EDOM) occurs.
  • Range error (ERANGE) may occur.
Reference
boost/math/special_functions