Spherical Bessel function of the first kind, order 0.
Computes with the continuous extension . Arises in 3D wave / scattering problems and is the radial component of plane waves expanded in spherical harmonics.
Parameters
Input tensor; any floating-point dtype.
Returns
Tensor element-wise, same shape and dtype as x.
Notes
Mathematical definition:
For the value is the Maclaurin series in , so the function is differentiable across the origin to every order (the quotient's own slope is the difference of two terms and loses it); beyond, is evaluated as written. Related to the normalised sinc: .
Examples
>>> import lucid
>>> from lucid.special import spherical_bessel_j0
>>> spherical_bessel_j0(lucid.tensor([0.0, 1.0, 2.0]))
tensor([1., 0.8415, 0.4546])