C306: Logarithm of the Gamma Function for Complex Argument

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

displaymath80

for complex tex2html_wrap_inline82 . The imaginary part Im tex2html_wrap_inline84 is calculated in such a way that it is continuous for tex2html_wrap_inline86 , i.e. it is not taken mod tex2html_wrap_inline88 .

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, ABEND

Usage:

In any arithmetic expression,

CLGAMA(Z) or WLGAMA(Z) has the value tex2html_wrap_inline90 ,

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: tex2html_wrap_inline92 The function value is set equal to zero, and a message is written on Unit 6, unless subroutine MTLSET (N002) has been called.

References:

  1. K.S. Kölbig, Programs for computing the logarithm of the gamma function, and the digamma function, for complex argument, Computer Phys. Comm. 4 (1972) 221-226.
tex2html_wrap_inline94

Michel Goossens Tue Jun 4 21:05:57 METDST 1996