Caution: This version of this document is no longer maintained. For the latest documentation, see

yn(), ynf()

Compute a Bessel function of the second kind


#include <math.h>

double yn( int n, 
           double x );

float ynf( int n, 
           float x );


n, x
The numbers that you want to compute the Bessel function for.



Use the -l bessel option to qcc to link against this library.


Compute the Bessel function of the second kind for n and x.


The result of the Bessel function of n and x.

Note: If an error occurs, these functions return 0, but this is also a valid mathematical result. If you want to check for errors, set errno to 0, call the function, and then check errno again. These functions don't change errno if no errors occurred.


yn() is POSIX 1003.1 XSI; ynf() is Unix

Cancellation point No
Interrupt handler No
Signal handler No
Thread Yes

See also:

errno, j0(), j1(), jn(), y0(), y1()