File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ function besselj0(x::T) where T
65
65
66
66
# the following computes b = cos(x + xn) more accurately
67
67
# see src/misc.jl
68
- b = mycos (x, xn)
68
+ b = cos_sum (x, xn)
69
69
return a * b
70
70
end
71
71
end
@@ -125,7 +125,7 @@ function besselj1(x::Float64)
125
125
126
126
# the following computes b = cos(x + xn) more accurately
127
127
# see src/misc.jl
128
- b = mycos (x, xn)
128
+ b = cos_sum (x, xn)
129
129
return a * b
130
130
end
131
131
end
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ function _bessely0_compute(x::Float64)
69
69
70
70
# the following computes b = sin(x + xn) more accurately
71
71
# see src/misc.jl
72
- b = mysin (x, xn)
72
+ b = sin_sum (x, xn)
73
73
return a * b
74
74
end
75
75
end
@@ -133,7 +133,7 @@ function _bessely1_compute(x::Float64)
133
133
134
134
# the following computes b = sin(x + xn) more accurately
135
135
# see src/misc.jl
136
- b = mysin (x, xn)
136
+ b = sin_sum (x, xn)
137
137
return a * b
138
138
end
139
139
end
Original file line number Diff line number Diff line change 1
1
# function to more accurately compute cos(x + xn)
2
- # when x >> xn
3
2
# see https://github.com/heltonmc/Bessels.jl/pull/13
4
3
# written by @oscardssmith
5
- function mycos (x, xn)
4
+ function cos_sum (x, xn)
6
5
s = x + xn
7
6
n, r = Base. Math. rem_pio2_kernel (s)
8
7
lo = r. lo - ((s - x) - xn)
@@ -20,7 +19,7 @@ function mycos(x, xn)
20
19
end
21
20
end
22
21
# function to more accurately compute sin(x + xn)
23
- function mysin (x, xn)
22
+ function sin_sum (x, xn)
24
23
s = x + xn
25
24
n, r = Base. Math. rem_pio2_kernel (s)
26
25
lo = r. lo - ((s - x) - xn)
@@ -36,4 +35,4 @@ function mysin(x, xn)
36
35
else
37
36
return - Base. Math. cos_kernel (y)
38
37
end
39
- end
38
+ end
You can’t perform that action at this time.
0 commit comments