9 REAL ser,stp,tmp,
x,
y,cof(6)
11 DATA cof,stp/76.18009172947146e0,-86.50532032941677e0,
12 & 24.01409824083091e0,-1.231739572450155e0,.1208650973866179e-2,
13 & -.5395239384953e-5,2.5066282746310005e0/
17 tmp=(
x+0.5e0)*
log(tmp)-tmp
18 ser=1.000000000190015e0
23 gammln=tmp+
log(stp*ser/
x)