1 SUBROUTINE cbesi(Z, FNU, KODE, N, CY, NZ, IERR)
150 COMPLEX CONE, CSGN, CY, Z, ZN
151 REAL AA, ALIM, ARG, DIG, ELIM, FNU, FNUL, PI, RL, R1M5, S1, S2,
152 * TOL, XX, YY, R1MACH, AZ, FN, BB, ASCLE, RTOL, ATOL
153 INTEGER I, IERR, INU, K, KODE, K1, K2, N, NN, NZ, I1MACH
155 DATA pi /3.14159265358979324e0/
156 DATA cone / (1.0e0,0.0e0) /
161 IF (fnu.LT.0.0e0) ierr=1
162 IF (kode.LT.1 .OR. kode.GT.2) ierr=1
164 IF (ierr.NE.0)
RETURN
178 tol = amax1(r1mach(4),1.0e-18)
182 k = min0(iabs(k1),iabs(k2))
183 elim = 2.303e0*(float(k)*r1m5-3.0e0)
186 dig = amin1(aa,18.0e0)
188 alim = elim + amax1(-aa,-41.45e0)
189 rl = 1.2e0*dig + 3.0e0
190 fnul = 10.0e0 + 6.0e0*(dig-3.0e0)
196 bb=float(i1mach(9))*0.5e0
198 IF(az.GT.aa)
GO TO 140
200 IF(fn.GT.aa)
GO TO 140
207 IF (xx.GE.0.0e0)
GO TO 40
214 arg = (fnu-float(inu))*pi
215 IF (yy.LT.0.0e0) arg = -arg
219 IF (
mod(inu,2).EQ.1) csgn = -csgn
221 CALL cbinu(zn, fnu, kode, n, cy, nz, rl, fnul, tol, elim, alim)
222 IF (nz.LT.0)
GO TO 120
223 IF (xx.GE.0.0e0)
RETURN
230 ascle = r1mach(1)*rtol*1.0e+3
237 IF (amax1(abs(aa),abs(bb)).GT.ascle)
GO TO 55
238 zn = zn*
cmplx(rtol,0.0e0)
242 cy(i) = zn*
cmplx(atol,0.0e0)
247 IF(nz.EQ.(-2))
GO TO 130
subroutine cbesi(Z, FNU, KODE, N, CY, NZ, IERR)
subroutine cbinu(Z, FNU, KODE, N, CY, NZ, RL, FNUL, TOL, ELIM, ALIM)
ColumnVector real(const ComplexColumnVector &a)