Computes the spherical Bessel function of the second kind, \( y_{1}(x)= \sqrt{\frac\pi{2x}}Y_{3/2}(x) \).
It is a solution of \( x^{2}y''+2xy'+(x^2-2)y=0\) for which \( y(0) = -\infty\).
Defined in header
#include <eve/module/bessel.hpp>
{
template< eve::floating_ordered_value T >
}
constexpr callable_sph_bessel_y1_ sph_bessel_y1
Computes the spherical Bessel function of the second kind, .
Definition: sph_bessel_y1.hpp:53
Parameters
Return value
The value of \(\displaystyle y_{1}(x)=-\frac{\cos x }{x^2}-\frac{\sin x }x\) is returned.
#include <eve/module/bessel.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
wide_ft pf = {0.5, -1.5, 0.1, 1.0, 19.0, 25.0, 21.5, 10000.0};
std::cout << "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
;
double xd = -1.0;
std::cout << "---- scalar" << '\n'
<< "<- xd = " << xd << '\n'
return 0;
}
Wrapper for SIMD registers.
Definition: wide.hpp:65