_yn-Lowcase
Compute the Bessel function. The _y0, _y1, and _yn routines return Bessel functions of the second kind: orders 0, 1, and n, respectively.
double _yn( int n, double x )
The _yn returns a Bessel function of x.
EX1
//This program illustrates Bessel functions. #include <origin.h> int test_Yn() { double vv; vv = _yn( 0,0 ); out_double("_yn(0,0)=", vv); //output should be _yn(0,0)=-- ASSERT( is_equal(vv, NANUM) ); vv = _yn( 1,1 ); out_double("_yn(1,1)=", vv); //output should be _yn(1,1)=-0.78121 ASSERT( is_equal(round(vv, 5), -0.78121) ); return 1; }
_y1
origin.h