Routine ID: C306 | |
---|---|
Author(s): K.S. Kölbig | Library: MATHLIB |
Submitter: | Submitted: 15.03.1994 |
Language: Fortran | Revised: |
Function subprograms CLGAMA and WLGAMA calculate the logarithm of the gamma function
for complex . The imaginary part Im is calculated in such a way that it is continuous for , i.e. it is not taken mod .
The double-precision version WLGAMA is available only on computers which support a COMPLEX*16 Fortran data type.
Structure:
FUNCTION subprograms
User Entry Names: CLGAMA, WLGAMA
Files Referenced: Unit 6
External References: MTLMTR (N002), ABEND (Z035)
Usage:
In any arithmetic expression, CLGAMA(Z) or WLGAMA(Z) has the value ,
where CLGAMA is of type COMPLEX, WLGAMA is of type COMPLEX*16, and Z has the same type as the function name.
Method:
The method is described in Ref. 1.
Accuracy:
CLGAMA (except on CDC and Cray computers) has full single-precision accuracy. For most values of the argument X, WLGAMA (and CLGAMA on CDC and Cray computers) has an accuracy of approximately two significant digits less than the machine precision.
Error handling:
Error C306.1:
The function value is set equal to zero, and a message is written on Unit 6, unless subroutine MTLSET (N002) has been called.
References: