XLPack 6.1
Excel VBA Numerical Library Reference Manual
Loading...
Searching...
No Matches

◆ Ibetai()

Function Ibetai ( A As  Double,
B As  Double,
P As  Double,
Py As  Double,
Optional Info As  Long 
)

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

Purpose
This routine returns a value x such that p = Ix(a, b), where p is the specified value of the normalized incomplete beta function.
Returns
Double
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.
[out]Info(Optional) = 0: Successful exit.
= -1: The argument A had an illegal value. (A <= 0)
= -2: The argument B had an illegal value. (B <= 0)
= -3: The argument P had an illegal value. (P < 0 or P > 1)
= 1: Floating point range error.
Reference
boost/math/special_functions