Skip to content

Commit aea768b

Browse files
committed
fix coverage
1 parent 7278cfe commit aea768b

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

src/besselk.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ Modified Bessel function of the second kind of order nu, ``K_{nu}(x)`` valid for
215215
"""
216216
function besselk_positive_args(nu, x::T) where T <: Union{Float32, Float64}
217217
iszero(x) && return T(Inf)
218-
218+
219219
# dispatch to avoid uniform expansion when nu = 0
220220
iszero(nu) && return besselk0(x)
221221

src/recurrence.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ end
3636
return jnup1, jnu
3737
end
3838

39-
39+
#=
4040
# currently not used
4141
# backward recurrence relation for besselk and besseli
4242
# outputs both (bessel(x, nu_end), bessel(x, nu_end-1)
@@ -50,4 +50,4 @@ end
5050
end
5151
return jnup1, jnu
5252
end
53-
53+
=#

test/besselk_test.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ t = [besselk(m, x) for m in m, x in x]
104104

105105
@test besselkx(15, 82.123) SpecialFunctions.besselk(15, 82.123)*exp(82.123)
106106
@test besselkx(105, 182.123) SpecialFunctions.besselk(105, 182.123)*exp(182.123)
107+
@test besselkx(4, 3.0) SpecialFunctions.besselk(4, 3.0)*exp(3.0)
108+
@test besselkx(3.2, 1.1) SpecialFunctions.besselk(3.2, 1.1)*exp(1.1)
109+
@test besselkx(8.2, 9.1) SpecialFunctions.besselk(8.2, 9.1)*exp(9.1)
110+
107111

108112
## Tests for besselk
109113

0 commit comments

Comments
 (0)