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.141592653589793238462643383d+0,
12 1 1.570796326794896619231321696d+0/
15 IF (ar.EQ.0.0d+0)
GO TO 10
16 IF (ai.EQ.0.0d+0)
GO TO 20
18 IF (dtheta.LE.0.0d+0)
GO TO 40
19 IF (ar.LT.0.0d+0) dtheta = dtheta - dpi
21 10
IF (ai.EQ.0.0d+0)
GO TO 60
24 IF (ai.LT.0.0d+0) bi = -bi
26 20
IF (ar.GT.0.0d+0)
GO TO 30
33 40
IF (ar.LT.0.0d+0) dtheta = dtheta + dpi
subroutine xzlog(AR, AI, BR, BI, IERR)