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

◆ ibetai()

double ibetai ( double  a,
double  b,
double  p,
double *  py 
)

Normalized incomplete beta function Ix(a, b) inverse for x

Purpose
ibetai returns a value x such that p = Ix(a, b), where p is the specified value of the normalized incomplete beta function.
Returns
Value of x.
Parameters
[in]aArgument a. (a > 0)
[in]bArgument b. (b > 0)
[in]pSpecified value of normalized incomplete beta function. (0 <= p <= 1)
[out]pyReturne 1 - x. The value returned in py is free from cancellation errors. Even if ibetai returns 1, the value of py may be non-zero very small value.
Error handling
  • If a <= 0, b <= 0, p < 0 or p > 1, domain error (EDOM) occurs.
  • Range error (ERANGE) may occur.
Reference
boost/math/special_functions