2 DOUBLE PRECISION FUNCTION DBESI0
(X
)
3 C***BEGIN PROLOGUE DBESI0
4 C***PURPOSE Compute the hyperbolic Bessel function of the first kind
6 C***LIBRARY SLATEC (FNLIB)
8 C***TYPE DOUBLE PRECISION (BESI0-S, DBESI0-D)
9 C***KEYWORDS FIRST KIND, FNLIB, HYPERBOLIC BESSEL FUNCTION,
10 C MODIFIED BESSEL FUNCTION, ORDER ZERO, SPECIAL FUNCTIONS
11 C***AUTHOR Fullerton, W., (LANL)
14 C DBESI0(X) calculates the double precision modified (hyperbolic)
15 C Bessel function of the first kind of order zero and double
16 C precision argument X.
18 C Series for BI0 on the interval 0. to 9.00000E+00
19 C with weighted error 9.51E-34
20 C log weighted error 33.02
21 C significant figures required 33.31
22 C decimal places required 33.65
25 C***ROUTINES CALLED D1MACH, DBSI0E, DCSEVL, INITDS, XERMSG
26 C***REVISION HISTORY (YYMMDD)
28 C 890531 Changed all specific intrinsics to generic. (WRB)
29 C 890531 REVISION DATE from Version 3.2
30 C 891214 Prologue converted to Version 4.0 format. (BAB)
31 C 900315 CALLs to XERROR changed to CALLs to XERMSG. (THJ)
32 C***END PROLOGUE DBESI0
33 DOUBLE PRECISION X
, BI0CS
(18), XMAX
, XSML
, Y
, D1MACH
,
36 SAVE BI0CS
, NTI0
, XSML
, XMAX
, FIRST
37 DATA BI0CS
( 1) / -.7660547252 8391449510 8189497624 3285 D
-1 /
38 DATA BI0CS
( 2) / +.1927337953 9938082699 5240875088 1196 D
+1 /
39 DATA BI0CS
( 3) / +.2282644586 9203013389 3702929233 0415 D
+0 /
40 DATA BI0CS
( 4) / +.1304891466 7072904280 7933421069 1888 D
-1 /
41 DATA BI0CS
( 5) / +.4344270900 8164874513 7868268102 6107 D
-3 /
42 DATA BI0CS
( 6) / +.9422657686 0019346639 2317174411 8766 D
-5 /
43 DATA BI0CS
( 7) / +.1434006289 5106910799 6209187817 9957 D
-6 /
44 DATA BI0CS
( 8) / +.1613849069 6617490699 1541971999 4611 D
-8 /
45 DATA BI0CS
( 9) / +.1396650044 5356696994 9509270814 2522 D
-10 /
46 DATA BI0CS
( 10) / +.9579451725 5054453446 2752317189 3333 D
-13 /
47 DATA BI0CS
( 11) / +.5333981859 8625021310 1510774400 0000 D
-15 /
48 DATA BI0CS
( 12) / +.2458716088 4374707746 9678591999 9999 D
-17 /
49 DATA BI0CS
( 13) / +.9535680890 2487700269 4434133333 3333 D
-20 /
50 DATA BI0CS
( 14) / +.3154382039 7214273367 8933333333 3333 D
-22 /
51 DATA BI0CS
( 15) / +.9004564101 0946374314 6666666666 6666 D
-25 /
52 DATA BI0CS
( 16) / +.2240647369 1236700160 0000000000 0000 D
-27 /
53 DATA BI0CS
( 17) / +.4903034603 2428373333 3333333333 3333 D
-30 /
54 DATA BI0CS
( 18) / +.9508172606 1226666666 6666666666 6666 D
-33 /
56 C***FIRST EXECUTABLE STATEMENT DBESI0
58 NTI0
= INITDS
(BI0CS
, 18, 0.1*REAL(D1MACH
(3)))
59 XSML
= SQRT
(4.5D0*D1MACH
(3))
60 XMAX
= LOG
(D1MACH
(2))
65 IF (Y
.GT
.3.0D0
) GO TO 20
68 IF (Y
.GT
.XSML
) DBESI0
= 2.75D0
+ DCSEVL
(Y*Y
/4.5D0
-1.D0
, BI0CS
,
72 20 IF (Y
.GT
. XMAX
) CALL XERMSG
('SLATEC', 'DBESI0',
73 + 'ABS(X) SO BIG I0 OVERFLOWS', 2, 2)
75 DBESI0
= EXP
(Y
) * DBSI0E
(X
)