XLPack 7.0
XLPack Numerical Library (Excel VBA) Reference Manual
Loading...
Searching...
No Matches

◆ Ibetai_sub()

Sub Ibetai_sub ( Ret As  Double,
A As  Double,
B As  Double,
P As  Double,
Py As  Double,
Optional Info As  Long 
)

Inverse function of x for normalized incomplete beta function Ix(a, b) (Subroutine version)

Purpose
Computes the inverse function of x for normalized incomplete beta function Ix(a, b).
Parameters
[out]RetInverse function of x for normalized incomplete beta function Ix(a, b).
[in]AArgument a. (A > 0)
[in]BArgument b. (B > 0)
[in]PValue of Ix(a, b). (0 <= P <= 1)
[out]Py1 - x is returned. 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