_y0

Description

Compute the Bessel function. The _y0, _y1, and _yn routines return Bessel functions of the second kind: orders 0, 1, and n, respectively.

Syntax

double _y0( double x )

Parameters

x
[input] Floating-point value

Return

The _y0 returns a Bessel function of x.

Examples

EX1

int Y0_ex1()
{
    double vv;
    
    vv = _y0(0);
    out_double( "_y0(0)=", vv );         //output should be _y0(0)=--
    ASSERT( is_equal(vv, NANUM) );
    
    vv= _y0(11);
    out_double( "_y0(11)=", vv );        //output should be _y0(11)=-0.16885
    ASSERT( is_equal(round(vv, 5), -0.16885) );
    
    return 1;
}

Remark

See Also

_y1

header to Include

origin.h

Reference