Skip to content

Commit

Permalink
fix doc string error
Browse files Browse the repository at this point in the history
  • Loading branch information
heltonmc committed Aug 3, 2022
1 parent ab6a5e5 commit dfbd16d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/besseli.jl
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ end
#

"""
besselk(x::T) where T <: Union{Float32, Float64}
besseli(x::T) where T <: Union{Float32, Float64}
Modified Bessel function of the second kind of order nu, ``K_{nu}(x)``.
Modified Bessel function of the second kind of order nu, ``I_{nu}(x)``.
"""
function besseli(nu::Real, x::T) where T
isinteger(nu) && return besseli(Int(nu), x)
Expand Down
2 changes: 1 addition & 1 deletion src/besselk.jl
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ function besselk_power_series(v, x::T) where T
tmp *= inv(gam_1mv * gam_1mnv * fact_k)
term = t1 * tmp
out += term
abs(term / out) < eps(T) && return out
abs(term / out) < eps(T) && break
(gam_1mnv, gam_1mv) = (gam_1mnv*(one(T) + v + k), gam_1mv*(one(T) - v + k))
xd2_pow *= zz
fact_k *= k + one(T)
Expand Down

0 comments on commit dfbd16d

Please sign in to comment.