File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 160
160
#
161
161
162
162
"""
163
- besselk (x::T) where T <: Union{Float32, Float64}
163
+ besseli (x::T) where T <: Union{Float32, Float64}
164
164
165
- Modified Bessel function of the second kind of order nu, ``K_ {nu}(x)``.
165
+ Modified Bessel function of the second kind of order nu, ``I_ {nu}(x)``.
166
166
"""
167
167
function besseli (nu:: Real , x:: T ) where T
168
168
isinteger (nu) && return besseli (Int (nu), x)
Original file line number Diff line number Diff line change @@ -402,7 +402,7 @@ function besselk_power_series(v, x::T) where T
402
402
tmp *= inv (gam_1mv * gam_1mnv * fact_k)
403
403
term = t1 * tmp
404
404
out += term
405
- abs (term / out) < eps (T) && return out
405
+ abs (term / out) < eps (T) && break
406
406
(gam_1mnv, gam_1mv) = (gam_1mnv* (one (T) + v + k), gam_1mv* (one (T) - v + k))
407
407
xd2_pow *= zz
408
408
fact_k *= k + one (T)
You can’t perform that action at this time.
0 commit comments