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
Input 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
; a float64 input takes the Cephes
double-precision series instead. 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.08826, -0.3085, 0.05567])