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

◆ tgammadratio()

double tgammadratio ( double  a,
double  delta 
)

Ratio of gamma functions Γ(a)/Γ(a+δ)

Purpose
tgammadratio computes the ratio of gamma functions Γ(a)/Γ(a+δ).
The result is calculated accurately even when δ is small compared to a.
Returns
Ratio of gamma functions Γ(a)/Γ(a+δ).
Parameters
[in]aArgument a. (a > 0)
[in]deltaArgument δ. (a + delta > 0)
Error handling
  • If a <= 0 or a + delta <= 0, domain error (EDOM) occurs.
  • Range error (ERANGE) may occur.
Reference
boost/math/special_functions