The spherical Bessel functions of integer order, or their derivatives,
for real or complex argument, as scipy.special's spherical_jn() and
siblings compute them.
Usage
sc_spherical_jn(n, z, derivative = FALSE)
sc_spherical_yn(n, z, derivative = FALSE)
sc_spherical_in(n, z, derivative = FALSE)
sc_spherical_kn(n, z, derivative = FALSE)Details
sc_spherical_jn(),sc_spherical_yn(): \(j_n(z)\) and \(y_n(z)\).sc_spherical_in(),sc_spherical_kn(): the modified functions \(i_n(z)\) and \(k_n(z)\).
Arguments are recycled: each must have length one or the common length.
NA gives NA; NaN is evaluated as SciPy does. The result takes its
dimensions, or else its names, from the arguments as base R arithmetic
does, and so does each element of a list result. Conditions the kernels
raise, such as a pole, are handled as sc_seterr() says.