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

◆ ibetaci()

double ibetaci ( double  a,
double  b,
double  q,
double *  py 
)

Normalized compliment of incomplete beta function 1 - Ix(a, b) inverse for x

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