Skip to content

Commit c02cd5a

Browse files
committed
default besselh to k=1 like the docs say it does
1 parent ec6c51d commit c02cd5a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/BesselFunctions/hankel.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ function besselh(nu::Real, k::Integer, x)
217217
end
218218
end
219219

220+
besselh(nu, x) = besselh(nu, 1, x)
221+
220222
function besselh(nu::AbstractRange, k::Integer, x::T) where T
221223
(nu[1] >= 0 && step(nu) == 1) || throw(ArgumentError("nu must be >= 0 with step(nu)=1"))
222224
if nu[end] < x

0 commit comments

Comments
 (0)