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

◆ Gamr_sub()

Sub Gamr_sub ( Ret As  Double,
X As  Double,
Optional Info As  Long 
)

Reciprocal of gamma function 1/Γ(x) (Subroutine version)

Purpose
Computes the reciprocal of the gamma function at x, where x is not 0, -1, -2, ...
Parameters
[out]RetReciprocal of the gamma function 1/Γ(x).
[in]XArgument x. (X <> 0 and X <> a negative integer)
[out]Info(Optional)
= 0: Successful exit.
= -1: The argument X had an illegal value. (X = 0 or negative integer)
= 1: Floating point range error.