1 SUBROUTINE cuoik(Z, FNU, KODE, IKFLG, N, Y, NUF, TOL, ELIM, ALIM)
27 COMPLEX ARG, ASUM, BSUM, CWRK, CZ, CZERO, PHI, SUM, Y, Z, ZB,
28 * ZETA1, ZETA2, ZN, ZR
29 REAL AARG, AIC, ALIM, APHI, ASCLE, AX, AY, ELIM, FNN, FNU, GNN,
30 * GNU, RCZ, TOL, X, YY
31 INTEGER I, IFORM, IKFLG, INIT, KODE, N, NN, NUF, NW
32 dimension y(n), cwrk(16)
33 DATA czero / (0.0e0,0.0e0) /
34 DATA aic / 1.265512123484645396e+00 /
39 IF (x.LT.0.0e0) zr = -z
45 IF (ay.GT.ax) iform = 2
46 gnu = amax1(fnu,1.0e0)
47 IF (ikflg.EQ.1)
GO TO 10
49 gnn = fnu + fnn - 1.0e0
57 IF (iform.EQ.2)
GO TO 20
59 CALL cunik(zr, gnu, ikflg, 1, tol, init, phi, zeta1, zeta2, sum,
64 zn = -zr*
cmplx(0.0e0,1.0e0)
65 IF (yy.GT.0.0e0)
GO TO 30
68 CALL cunhj(zn, gnu, 1, tol, phi, arg, zeta1, zeta2, asum, bsum)
72 IF (kode.EQ.2) cz = cz - zb
73 IF (ikflg.EQ.2) cz = -cz
79 IF (rcz.GT.elim)
GO TO 170
80 IF (rcz.LT.alim)
GO TO 50
81 rcz = rcz + alog(aphi)
82 IF (iform.EQ.2) rcz = rcz - 0.25e0*alog(aarg) - aic
83 IF (rcz.GT.elim)
GO TO 170
89 IF (rcz.LT.(-elim))
GO TO 60
90 IF (rcz.GT.(-alim))
GO TO 100
91 rcz = rcz + alog(aphi)
92 IF (iform.EQ.2) rcz = rcz - 0.25e0*alog(aarg) - aic
93 IF (rcz.GT.(-elim))
GO TO 80
101 ascle = 1.0e+3*
r1mach(1)/tol
103 IF (iform.EQ.1)
GO TO 90
104 cz = cz -
cmplx(0.25e0,0.0e0)*clog(arg) -
cmplx(aic,0.0e0)
109 CALL cuchk(cz, nw, ascle, tol)
110 IF (nw.EQ.1)
GO TO 60
112 IF (ikflg.EQ.2)
RETURN
118 gnu = fnu + float(nn-1)
119 IF (iform.EQ.2)
GO TO 120
121 CALL cunik(zr, gnu, ikflg, 1, tol, init, phi, zeta1, zeta2, sum,
126 CALL cunhj(zn, gnu, 1, tol, phi, arg, zeta1, zeta2, asum, bsum)
130 IF (kode.EQ.2) cz = cz - zb
133 IF (rcz.LT.(-elim))
GO TO 140
134 IF (rcz.GT.(-alim))
RETURN
135 rcz = rcz + alog(aphi)
136 IF (iform.EQ.2) rcz = rcz - 0.25e0*alog(aarg) - aic
137 IF (rcz.GT.(-elim))
GO TO 150
145 ascle = 1.0e+3*
r1mach(1)/tol
147 IF (iform.EQ.1)
GO TO 160
148 cz = cz -
cmplx(0.25e0,0.0e0)*clog(arg) -
cmplx(aic,0.0e0)
153 CALL cuchk(cz, nw, ascle, tol)
154 IF (nw.EQ.1)
GO TO 140
subroutine cuchk(Y, NZ, ASCLE, TOL)
subroutine cunhj(Z, FNU, IPMTR, TOL, PHI, ARG, ZETA1, ZETA2, ASUM, BSUM)
subroutine cunik(ZR, FNU, IKFLG, IPMTR, TOL, INIT, PHI, ZETA1, ZETA2, SUM, CWRK)
subroutine cuoik(Z, FNU, KODE, IKFLG, N, Y, NUF, TOL, ELIM, ALIM)
ColumnVector real(const ComplexColumnVector &a)