R9LGMC(3)

SYNOPSIS
FUNCTION R9LGMC (X)

NAME
r9lgmc - Compute the log Gamma correction factor so that LOG(GAMMA(X)) = LOG(SQRT(2*PI)) + (X-.5)*LOG(X) - X + R9LGMC(X).

LIBRARY
SLATEC (FNLIB)

CATEGORY
C7E

TYPE
SINGLE PRECISION (R9LGMC-S, D9LGMC-D, C9LGMC-C)

KEYWORDS
COMPLETE GAMMA FUNCTION, CORRECTION TERM, FNLIB, LOG GAMMA, LOGARITHM, SPECIAL FUNCTIONS

AUTHOR
Fullerton, W., (LANL)

DESCRIPTION
Compute the log gamma correction factor for X .GE. 10.0 so that LOG (GAMMA(X)) = LOG(SQRT(2*PI)) + (X-.5)*LOG(X) - X + R9LGMC(X) Series for ALGM on the interval 0. to 1.00000D-02 with weighted error 3.40E-16 log weighted error 15.47 significant figures required 14.39 decimal places required 15.86

REFERENCES
(NONE)

ROUTINES CALLED
CSEVL, INITS, R1MACH, XERMSG

REVISION HISTORY (YYMMDD)
770801 DATE WRITTEN
890531 Changed all specific intrinsics to generic. (WRB)
890531 REVISION DATE from Version 3.2
891214 Prologue converted to Version 4.0 format. (BAB)
900315 CALLs to XERROR changed to CALLs to XERMSG. (THJ)
900720 Routine changed from user-callable to subsidiary. (WRB)