Author(s): K.S. Kölbig | Library: MATHLIB |
Submitter: | Submitted: 15.11.1995 |
Language: Fortran | Revised: |
Function subprograms CPSIPG and WPSIPG calculate either the logarithmic derivative of the gamma function (the psi, or digamma, function)
or one of the other polygamma functions
for complex arguments and k = 0,1,2,3,4.
The double-precision version WPSIPG is available only on computers which support a COMPLEX*16 Fortran data type.
Structure:
FUNCTION subprograms
User Entry Names: CPSIPG, WPSIPG
Files Referenced: Unit 6
External References: MTLMTR, ABEND
Usage:
In any arithmetic expression,
CPSIPG(Z,K) or WPSIPG(Z,K) has the value ,
Method:
The method for described in Ref. 1 is adapted accordingly.
Accuracy:
CPSIPG (except on CDC and Cray computers) has full single-precision accuracy. For most values of the argument Z, WPSIPG (and CPSIPG on CDC and Cray computers) has an accuracy of approximately two significant digit less than the machine precision.
Error handling:
Error C317.1: or .
Error C317.2: .
In both cases, the function value is set to zero, and a message is
written on Unit 6, unless subroutine MTLSET (N002) has
been called.
References: