Skip to content

Commit 08b5626

Browse files
committed
favor large argument expansion
1 parent 6d1f74d commit 08b5626

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/bessely.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,16 +291,16 @@ function bessely_positive_args(nu, x::T) where T
291291
# x < ~nu branch see src/U_polynomials.jl
292292
besseljy_debye_cutoff(nu, x) && return besseljy_debye(nu, x)[2]
293293

294-
# x > ~nu branch see src/U_polynomials.jl on computing Hankel function
295-
hankel_debye_cutoff(nu, x) && return imag(hankel_debye(nu, x))
296-
297294
# large argument branch see src/asymptotics.jl
298295
besseljy_large_argument_cutoff(nu, x) && return besseljy_large_argument(nu, x)[2]
299296

297+
# x > ~nu branch see src/U_polynomials.jl on computing Hankel function
298+
hankel_debye_cutoff(nu, x) && return imag(hankel_debye(nu, x))
299+
300300
# use power series for small x and for when nu > x
301301
bessely_series_cutoff(nu, x) && return bessely_power_series(nu, x)
302302

303-
# for x ∈ (6, 19) we use chebyshev approximation and forward recurrence
303+
# for x ∈ (6, 19) we use Chebyshev approximation and forward recurrence
304304
besseljy_chebyshev_cutoff(nu, x) && return bessely_chebyshev(nu, x)
305305

306306
# at this point x > 19.0 (for Float64) and fairly close to nu

0 commit comments

Comments
 (0)