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

◆ Digamma_sub()

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

Digamma (or psi) function ψ(x) (Subroutine version)

Purpose
Computes the digamma (or psi) function ψ(x), where x is not 0, -1, -2, ...
ψ(x) = d/dx ln(Γ(x)) = Γ'(x)/Γ(x)
Parameters
[out]RetDigamma (or psi) function ψ(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 a negative integer)
= 1: Floating point range error.
Reference
boost/math/special_functions