Trailing-Edge
-
PDP-10 Archives
-
decus_20tap2_198111
-
decus/20-0026/gmmma.doc
There are 2 other files named gmmma.doc in the archive. Click here to see a list.
SUBROUTINE GMMMA
PURPOSE
COMPUTES THE GAMMA FUNCTION FOR A GIVEN ARGUMENT
USAGE
CALL GMMMA(XX,GX,IER)
DESCRIPTION OF PARAMETERS
XX -THE ARGUMENT FOR THE GAMMA FUNCTION
GX -THE RESULTANT GAMMA FUNCTION VALUE
IER-RESULTANT ERROR CODE WHERE
IER=0 NO ERROR
IER=1 XX IS WITHIN .000001 OF BEING A NEGATIVE INTEGER
IER=2 XX GT 57, OVERFLOW, GX SET TO 1.0E75
REMARKS
NONE
SUBROUTINES AND FUNCTION SUBPROGRAMS REQUIRED
NONE
METHOD
THE RECURSION RELATION AND POLYNOMIAL APPROXIMATION
BY C.HASTINGS,JR., 'APPROXIMATIONS FOR DIGITAL COMPUTERS',
PRINCETON UNIVERSITY PRESS, 1955