1 SUBROUTINE xzlog(AR, AI, BR, BI, IERR)
9 DOUBLE PRECISION AR, AI, BR, BI, ZM, DTHETA, DPI, DHPI
10 DOUBLE PRECISION XZABS
11 DATA dpi , dhpi / 3.141592653589793238462643383
d+0,
12 1 1.570796326794896619231321696
d+0/
15 IF (ar.EQ.0.0
d+0) go to 10
16 IF (ai.EQ.0.0
d+0) go to 20
18 IF (dtheta.LE.0.0
d+0) go to 40
19 IF (ar.LT.0.0
d+0) dtheta = dtheta - dpi
21 10
IF (ai.EQ.0.0
d+0) go to 60
24 IF (ai.LT.0.0
d+0) bi = -bi
26 20
IF (ar.GT.0.0
d+0) go to 30
33 40
IF (ar.LT.0.0
d+0) dtheta = dtheta + dpi
subroutine xzlog(AR, AI, BR, BI, IERR)
F77_RET_T const double const double double * d