Blame view
fvn_fnlib/zgamr.f
647 Bytes
0c3098aed ChW 02/2010 for t... |
1 |
complex(kind(1.d0)) function zgamr (z) |
38581db0c git-svn-id: https... |
2 3 4 5 6 |
implicit none c july 1977 edition. w. fullerton, c3, los alamos scientific lab. c this version is an inaccurate preliminary one. eventually this c routine should be a fundamental routine with no dependence on cgamma. c |
0c3098aed ChW 02/2010 for t... |
7 8 |
complex(kind(1.d0)) z, zlngam real(kind(1.d0)) x |
38581db0c git-svn-id: https... |
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
integer irold,ir external zlngam c zgamr = (0.0, 0.0) x = real (z) if (x.le.0.0 .and. aint(x).eq.x .and. 0.0.eq.aimag(z)) return c call entsrc (irold, 1) zgamr = zlngam(z) call erroff call entsrc (ir, irold) zgamr = exp (-zgamr) c return end |