You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/modifiedsphericalbessel.jl
+48-6Lines changed: 48 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,16 @@
1
1
# Modified Spherical Bessel functions
2
2
#
3
-
# sphericalbesselk(nu, x)
3
+
#sphericalbesseli(nu, x), sphericalbesselk(nu, x)
4
4
#
5
-
# A numerical routine to compute the modified spherical bessel functions of the second kind.
6
-
# For moderate sized integer orders, forward recurrence is used starting from explicit formulas for k0(x) = exp(-x) / x and k1(x) = k0(x) * (x+1) / x [1].
5
+
# A numerical routine to compute the modified spherical bessel functions of the first and second kind.
6
+
# The modified spherical bessel function of the first kind is computed using the power series for small arguments,
7
+
# explicit formulas for (nu=0,1,2), and using its relation to besseli for other arguments [1].
8
+
# The modified bessel function of the second kind is computed for small to moderate integer orders using forward recurrence starting from explicit formulas for k0(x) = exp(-x) / x and k1(x) = k0(x) * (x+1) / x [2].
7
9
# Large orders are determined from the uniform asymptotic expansions (see src/besselk.jl for details)
8
-
# For non-integer orders, we directly call the besselk routine using the relation k_{n}(x) = sqrt(pi/(2x))*besselk(n+1/2, x) [1].
0 commit comments