|
|
◆ Lnbeta_sub()
| Sub Lnbeta_sub |
( |
Ret As |
Double, |
|
|
A As |
Double, |
|
|
B As |
Double, |
|
|
Optional Info As |
Long |
|
) |
| |
Logarithm of beta function ln(B(a, b)) (Subroutine version)
- Purpose
- Computes the logarithm of the beta function ln(B(a, b)).
ln(B(a, b)) = ln(Γ(a)Γ(b)/Γ(a + b))
- Parameters
-
| [out] | Ret | Logarithm of the beta function ln(B(a, b)). |
| [in] | A | Argument a. (A > 0) |
| [in] | B | Argument 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. |
|