fn
bessel_y1
→Tensorbessel_y1(x: Tensor)Bessel function of the second kind, order 1.
Computes , the singular-at-origin order-one solution
of Bessel's equation. Diverges as at the origin
and decays as for large x.
Parameters
xTensorInput tensor; only is in the domain. Any
floating-point dtype.
Returns
Tensor element-wise, same shape and dtype as x.
Notes
Asymptotic forms:
Implementation: Numerical Recipes §6.5 rational fit on (Wronskian-corrected with the term), trigonometric asymptotic on . Accuracy is .
Examples
>>> import lucid
>>> from lucid.special import bessel_y1
>>> bessel_y1(lucid.tensor([1.0, 5.0, 10.0]))
Tensor([-0.7812, 0.1479, 0.2490])