bessel(3M) bessel(3M)
NAME
bessel: j0, j1, jn, y0, y1, yn - Bessel functions
SYNOPSIS
cc [flag ...] file ... -lm [library ...]
#include <math.h>
double j0(double x);
double j1(double x);
double jn(int n, double x);
double y0(double x);
double y1(double x);
double yn(int n, double x);
DESCRIPTION
j0(), j1(), and jn() return Bessel functions of x of the first kind of
orders 0, 1 and n, respectively.
y0(), y1(), and yn() return Bessel functions of x of the second kind
of orders 0, 1 and n, respectively. The value of x must be positive.
RESULT
Non-positive arguments cause y0(), y1(), and yn() to return the value
-HUGE and to set errno to EDOM. In addition, a message indicating
DOMAIN error is printed on the standard error output.
Arguments too large in magnitude cause j0(), j1(), y0(), and y1() to
return 0 and to set errno to ERANGE. In addition, a message indicating
TLOSS error is printed on the standard error output.
In the K&R mode, (cc -kcc), these error-handling procedures may be
changed with the function matherr(). In the ANSI mode, (cc -kansi),
HUGEVAL is returned instead of HUGE and no error messages are
printed.
SEE ALSO
isnan(3C), matherr(3M), math(5).
Page 1 Reliant UNIX 5.44 Printed 11/98