2
SUBROUTINE ALGAMS (X, ALGAM, SGNGAM)
3
C***BEGIN PROLOGUE ALGAMS
4
C***PURPOSE Compute the logarithm of the absolute value of the Gamma
6
C***LIBRARY SLATEC (FNLIB)
8
C***TYPE SINGLE PRECISION (ALGAMS-S, DLGAMS-D)
9
C***KEYWORDS ABSOLUTE VALUE OF THE LOGARITHM OF THE GAMMA FUNCTION,
10
C FNLIB, SPECIAL FUNCTIONS
11
C***AUTHOR Fullerton, W., (LANL)
14
C Evaluates the logarithm of the absolute value of the gamma
18
C SGNGAM - is set to the sign of GAMMA(X) and will
19
C be returned at +1.0 or -1.0.
22
C***ROUTINES CALLED ALNGAM
23
C***REVISION HISTORY (YYMMDD)
25
C 890531 Changed all specific intrinsics to generic. (WRB)
26
C 890531 REVISION DATE from Version 3.2
27
C 891214 Prologue converted to Version 4.0 format. (BAB)
28
C***END PROLOGUE ALGAMS
29
C***FIRST EXECUTABLE STATEMENT ALGAMS
34
INT = MOD (-AINT(X), 2.0) + 0.1
35
IF (INT.EQ.0) SGNGAM = -1.0