fn
bessel_y0
→Tensorbessel_y0(x: Tensor)Bessel function of the second kind, order 0.
Computes , the singular-at-origin partner of . Together and span the solution space of Bessel's equation at order 0; is the one that diverges (logarithmically) at the origin.
Parameters
xTensorInput tensor; only is in the domain. Any
floating-point dtype.
Returns
Tensor element-wise, same shape and dtype as x.
Notes
Asymptotic behaviour:
Implementation: Numerical Recipes §6.5 rational fit on
with the Wronskian term, and the
standard A&S 9.4.5 trigonometric asymptotic on .
Accuracy is . Y_0 diverges to
as .
Examples
>>> import lucid
>>> from lucid.special import bessel_y0
>>> bessel_y0(lucid.tensor([1.0, 5.0, 10.0]))
Tensor([0.0883, -0.3085, 0.0557])