-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathi0.h
84 lines (44 loc) · 1.41 KB
/
i0.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#ifndef _i0_h_
#define _i0_h_
/*
From scipy code at https://github.com/scipy/scipy/blob/master/scipy/special/cephes/i0.h
Copyright (c) 2001, 2002 Enthought, Inc.
All rights reserved.
Copyright (c) 2003-2017 SciPy Developers.
All rights reserved.
*/
/* i0.c
Modified Bessel function of order zero
SYNOPSIS:
double x, y, i0();
y = i0( x );
DESCRIPTION:
Returns modified Bessel function of order zero of the
argument.
The function is defined as i0(x) = j0( ix ).
The range is partitioned into the two intervals [0,8] and
(8, infinity). Chebyshev polynomial expansions are employed
in each interval.
ACCURACY:
Relative error:
arithmetic domain # trials peak rms
IEEE 0,30 30000 5.8e-16 1.4e-16
*/
/* i0e.c
Modified Bessel function of order zero,
exponentially scaled
SYNOPSIS:
double x, y, i0e();
y = i0e( x );
DESCRIPTION:
Returns exponentially scaled modified Bessel function
of order zero of the argument.
The function is defined as i0e(x) = exp(-|x|) j0( ix ).
ACCURACY:
Relative error:
arithmetic domain # trials peak rms
IEEE 0,30 30000 5.4e-16 1.2e-16
See i0().
*/
double i0(double x);
#endif