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

◆ Beta_sub()

Sub Beta_sub ( Ret As  Double,
A As  Double,
B As  Double,
Optional Info As  Long 
)

Beta function B(a, b) (Subroutine version)

Purpose
Computes the beta function B(a, b).
B(a, b) = Γ(a)Γ(b)/Γ(a + b)
Parameters
[out]RetBeta function B(a, b).
[in]AArgument a. (A > 0)
[in]BArgument b. (B > 0)
[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)
= 1: Floating point range error.
Reference
boost/math/special_functions