XLPack 7.0
XLPack Numerical Library (C API) Reference Manual
Loading...
Searching...
No Matches

◆ cdigamma_sub()

void cdigamma_sub ( doublecomplex  z,
doublecomplex *  zout 
)

Digamma (or psi) function ψ(z) (complex argument)

Purpose
cdigamma computes the digamma (or psi) function at a complex number z, where z is not 0, -1, -2, ...
ψ(z) = d/dz ln(Γ(z)) = Γ'(z)/Γ(z)
cdigamma_sub is the subroutine version of cdigamma.
Parameters
[in]zArgument z. (z != negative integer, z != 0)
[out]zoutDigamma (or psi) function ψ(z).
Error handling
  • If z is zero or real negative integer, NaN + NaN*I is returned and domain error (EDOM) occurs.
  • Range error (ERANGE) may occur.