EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gmre.f
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file gmre.f
1 C
2 C
3 C
4  FUNCTION gmre(X)
5  IMPLICIT REAL*8(a-h,o-z)
6  z=x
7  IF(x.GT.3.0d0) go to 10
8  z=x+3.d0
9 10 gmre=0.5d0*dlog(2.d0*3.14159265d0/z)+z*dlog(z)-z+dlog(1.d0
10  1 +1.d0/12.d0/z+1.d0/288.d0/z**2-139.d0/51840.d0/z**3
11  1 -571.d0/2488320.d0/z**4)
12  IF(z.EQ.x) go to 20
13  gmre=gmre-dlog(z-1.d0)-dlog(z-2.d0)-dlog(z-3.d0)
14 20 CONTINUE
15  RETURN
16  END