Search Site | Contact Details | FAQ

ADAS Subroutine a8gamg

       function a8gamg( a    , x )
c---------------------------------------------------------------------
c
c  ********************* fortran77 function a8gamg *******************
c
c  purpose: to evaluate the incomplete gamma function gamma(a,x)
c           based on numerical recipes  
c
c  calling program:  a8amax.for
c
c  input:
c            (r*8)  a      = parameter of p(a,x)
c            (r*8)  x      = parameter of p(a,x)
c  output:
c            (r*8)  a8gamg = incomplete gamma function gamma(a,x)
c                            (n.b. for x<0 principal value of 
c                             logarithm is taken)
c
c
c  routines: 
c             a8gser	adas	generates series expansion of gamma
c	      a8gcf	adas    generates continued fraction for gamma
c             a8gaml    adas    obtains log(gamma(a))
c
c  author:   Hugh Summers, University of Strathclyde ext.4196
c
c
c  version 1.1                             date:     27/06/99
c  modified: Hugh Summers
c		- first release
c
c-----------------------------------------------------------------------
      REAL*8              A,           X
© Copyright 1995-2018 The ADAS Project
Comments and questions to: adas-at-adas.ac.uk