Skip to content

Commit 2c3ec0e

Browse files
authored
Minor patch for sphericalbessely (#214)
1 parent 2820bea commit 2c3ec0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bessel.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ Spherical bessel function of the second kind at order `nu`, ``y_ν(x)``. This is
713713
solution to the radial part of the Helmholz equation in spherical coordinates. Sometimes
714714
known as a spherical Neumann function.
715715
"""
716-
sphericalbessely(nu, x::T) where {T} = ((float(T))(π)/2x) * bessely(nu + 1//2, x)
716+
sphericalbessely(nu, x::T) where {T} = ((float(T))(π)/2x) * bessely(nu + one(nu)/2, x)
717717

718718
"""
719719
hankelh1(nu, x)

0 commit comments

Comments
 (0)