Skip to content

Commit 9eed89e

Browse files
committed
export bessely
1 parent ca873b8 commit 9eed89e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/Bessels.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export besselj1
77

88
export bessely0
99
export bessely1
10+
export bessely
1011

1112
export besseli
1213
export besselix

src/bessely.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ end
187187
Bessel function of the first kind of order nu, ``J_{nu}(x)``.
188188
Nu must be real.
189189
"""
190-
function _bessely(nu, x::T) where T
190+
function bessely(nu, x::T) where T
191191

192192
# use forward recurrence if nu is an integer up until it becomes inefficient
193193
(isinteger(nu) && nu < 250) && return besselj_up_recurrence(x, bessely1(x), bessely0(x), 1, nu)[1]

test/bessely_test.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ nu = [0, 1, 2, 4, 6, 10, 15, 20, 25, 30, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85,
7474
for v in nu, xx in x
7575
xx *= v
7676
sf = SpecialFunctions.bessely(BigFloat(v), BigFloat(xx))
77-
@test isapprox(Bessels._bessely(v, xx), Float64(sf), rtol=2e-13)
77+
@test isapprox(bessely(v, xx), Float64(sf), rtol=2e-13)
7878
end
7979

8080
# test decimal orders
@@ -84,5 +84,5 @@ x = [0.05, 0.1, 0.2, 0.25, 0.3, 0.4, 0.5,0.55, 0.6,0.65, 0.7, 0.75, 0.8, 0.85,
8484
nu = [0.1, 0.4567, 0.8123, 1.5, 2.5, 4.1234, 6.8, 12.3, 18.9, 28.2345, 38.1235, 51.23, 72.23435, 80.5, 98.5, 104.2]
8585
for v in nu, xx in x
8686
xx *= v
87-
@test isapprox(Bessels._bessely(v, xx), SpecialFunctions.bessely(v, xx), rtol=5e-12)
87+
@test isapprox(bessely(v, xx), SpecialFunctions.bessely(v, xx), rtol=5e-12)
8888
end

0 commit comments

Comments
 (0)