Skip to content

Commit 1273fcd

Browse files
committed
Fixing docstring and adding ::Int annotation on the special method for
the modified spherical bessel.
1 parent 5ea2f3c commit 1273fcd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/modifiedsphericalbessel.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
function sphericalbesselk_int(v, x)
2+
function sphericalbesselk_int(v::Int, x)
33
b0 = inv(x)
44
b1 = (x+one(x))/(x*x)
55
iszero(v) && return b0*exp(-x)
@@ -24,8 +24,7 @@ end
2424
"""
2525
sphericalbesselk(nu, x::T) where T <: {Float32, Float64}
2626
27-
Computes `k_{ν}(x)`, the modified second-kind spherical Bessel function, and \
28-
offers special branches for integer orders.
27+
Computes `k_{ν}(x)`, the modified second-kind spherical Bessel function, and offers special branches for integer orders.
2928
"""
3029
sphericalbesselk(nu, x) = _sphericalbesselk(nu, float(x))
3130

0 commit comments

Comments
 (0)