Copyright © 1997 The Open Group

y0, y1, yn - Bessel functions of the second kind

`#include <math.h> double y0(double`

x); double y1 (doublex); double yn (intn, doublex);

They0(),y1()andyn()functions compute Bessel functions ofxof the second kind of orders 0, 1 andnrespectively. The value ofxmust be positive.An application wishing to check for error situations should set

errnoto 0 before callingy0(),y1()oryn(). Iferrnois non-zero on return, or the return value is NaN, an error has occurred.

Upon successful completion,y0(),y1()andyn()will return the relevant Bessel value ofxof the second kind.If

xis NaN, NaN is returned anderrnomay be set to [EDOM].If the

xargument toy0(),y1()oryn()is negative, -HUGE_VAL or NaN is returned, anderrnomay be set to [EDOM].If

xis 0.0, -HUGE_VAL is returned anderrnomay be set to [ERANGE] or [EDOM].If the correct result would cause underflow, 0.0 is returned and

errnomay be set to [ERANGE].If the correct result would cause overflow, -HUGE_VAL or 0.0 is returned and

errnomay be set to [ERANGE].

They0(),y1()andyn()functions may fail if:

- [EDOM]
- The value of
xis negative or NaN.- [ERANGE]
- The value of
xis too large in magnitude, orxis 0.0, or the correct result would cause overflow or underflow.No other errors will occur.

None.

None.

None.

isnan(),j0(),<math.h>.

Derived from Issue 1 of the SVID.

Copyright © 1997 The Open Group

[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]