Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Mathematical Library Functionsj0(3M)


NAME

 j0, j1, jn - Bessel functions of the first kind

SYNOPSIS

 
cc [ flag ... ] file ... -lm [ library ... ]
#include <math.h>
double j0(double x);
 double j1(double x);
 double jn(int n, double x);

DESCRIPTION

 

The j0(), j1() and jn() functions compute Bessel functions of x of the first kind of orders 0, 1 and n respectively.

RETURN VALUES

 

Upon successful completion, j0(), j1() and jn() return the relevant Bessel value of x of the first kind.

If the x argument is too large in magnitude, 0 is returned and errno may be set to ERANGE.

If x is NaN, NaN is returned.

For exceptional cases, matherr(3M) tabulates the values to be returned as dictated by Standards other than XPG4.

ERRORS

 

The j0(), j1() and jn() functions may fail if:

ERANGE
The value of x was too large in magnitude.

USAGE

 

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

ATTRIBUTES

 

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
MT-LevelMT-Safe

SEE ALSO

 

isnan(3M), matherr(3M), y0(3M), attributes(5), standards(5)


SunOS 5.9Go To TopLast Changed 29 Dec 1996

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.