Author(s): K.S. Kölbig | Library: MATHLIB |
Submitter: | Submitted: 07.06.1992 |
Language: Fortran | Revised: |
Function subprograms RPSIPG and DPSIPG calculate either the logarithmic derivative of the gamma function (the psi, or digamma, function)
or one of the other polygamma functions
for real arguments and .
Note that the Euler constant (also denoted by ) and the Catalan constant can be calculated by using this subprogram.
On CDC and Cray computers, the double-precision version DPSIPG is not available.
Structure:
FUNCTION subprograms
User Entry Names: RPSIPG, DPSIPG
Files Referenced: Unit 6
External References: MTLMTR, ABEND
Usage:
In any arithmetic expression,
RPSIPG(X,K) or DPSIPG(X,K) has the value ,
Method:
Rational Chebyshev approximation (k = 0), approximation by truncated Chebyshev series (k > 0), and functional relations.
Accuracy:
RPSIPG (except on CDC and Cray computers) has full single-precision accuracy. For most values of the argument X, DPSIPG (and RPSIPG on CDC and Cray computers) has an accuracy of approximately one significant digit less than the machine precision.
Error handling:
Error C316.1: or .
Error C316.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: