Skip to content

Commit 20de7e2

Browse files
committed
use expansion in scaled
1 parent f38aef6 commit 20de7e2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/besselk.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,9 @@ function _besselkx(nu, x::T) where T <: Union{Float32, Float64}
259259
# dispatch to avoid uniform expansion when nu = 0
260260
iszero(nu) && return besselk0x(x)
261261

262+
# check if the standard asymptotic expansion can be used
263+
besseli_large_argument_cutoff(nu, x) && return besselk_large_argument_scaled(nu, x)
264+
262265
# use uniform debye expansion if x or nu is large
263266
besselik_debye_cutoff(nu, x) && return besselk_large_orders_scaled(nu, x)
264267

0 commit comments

Comments
 (0)