The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

 NAME

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

 SYNOPSIS



#include <math.h>

double y0(double x);
double y1 (double x);
double yn (int n, double x);

 DESCRIPTION

The y0(), y1() and yn() functions compute Bessel functions of x of the second kind of orders 0, 1 and n respectively. The value of x must be positive.

An application wishing to check for error situations should set errno to 0 before calling y0(), y1() or yn(). If errno is non-zero on return, or the return value is NaN, an error has occurred.

 RETURN VALUE

Upon successful completion, y0(), y1() and yn() will return the relevant Bessel value of x of the second kind.

If x is NaN, NaN is returned and errno may be set to [EDOM].

If the x argument to y0(), y1() or yn() is negative, -HUGE_VAL or NaN is returned, and errno may be set to [EDOM].

If x is 0.0, -HUGE_VAL is returned and errno may be set to [ERANGE] or [EDOM].

If the correct result would cause underflow, 0.0 is returned and errno may be set to [ERANGE].

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

 ERRORS

The y0(), y1() and yn() functions may fail if:
[EDOM]
The value of x is negative or NaN.
[ERANGE]
The value of x is too large in magnitude, or x is 0.0, or the correct result would cause overflow or underflow.

No other errors will occur.

 EXAMPLES

None.

 APPLICATION USAGE

None.

 FUTURE DIRECTIONS

None.

 SEE ALSO

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

DERIVATION

Derived from Issue 1 of the SVID.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]