HPlogo HP-UX Reference > J

j0(3M)

HP-UX 11i Version 2: December 2007 Update
» 

Technical documentation

 » Table of Contents

 » Index

NAME

j0(), j0f(), j0l, j0w(), j0q(), j1(), j1f(), j1l(), j1w(), j1q(), jn(), jnf(), jnl(), jnw(), jnq() — Bessel functions of the first kind

SYNOPSIS

#include <math.h>

double j0(double x);

double j1(double x);

double jn(int n, double x);

HP Integrity Server Only

float j0f(float x);

float j1f(float x);

float jnf(int n, float x);

long double j0l(long double x);

long double j1l(long double x);

long double jnl(int n, long double x);

extended j0w(extended x);

extended j1w(extended x);

extended jnw(int n, extended x);

quad j0q(quad x);

quad j1q(quad x);

quad jnq(int n, quad x);

DESCRIPTION

j0() and j1() return Bessel functions of x of the first kind of orders 0 and 1 respectively. jn() returns the Bessel function of x of the first kind of order n.

j0f(), j1f(), and jnf() are float versions of j0(), j1(), and jn(); each takes a float argument x and returns a float result.

j0l(), j1l(), and jnl() are long double versions of j0(), j1(), and jn(); each takes a long double argument x and returns a long double result.

j0w(), j1w(), and jnw() are extended versions of j0(), j1(), and jn(); each takes an extended argument x and returns an extended result.

j0q(), j1q(), and jnq() are quad versions of j0(), j1(), and jn(); each takes a quad arguemnt x and returns a quad result.

USAGE

To use these functions, compile either with the default -Ae option or with the -Aa and -D_HPUX_SOURCE options. Make sure your program includes <math.h>. Link in the math library by specifying -lm on the compiler or linker command line.

To use (for Integrity servers) j0w(), j1w(), jnw(), j0q(), j1q(), or jnq(), compile also with the -fpwidetypes option.

RETURN VALUE

If x is NaN, j0(), j1(), and jn() return NaN.

ERRORS

No errors are defined.

SEE ALSO

y0(3M), math(5).

M. Abramowitz and I. Stegun, Handbook of Mathematical Functions (New York: Dover Publications, 1972).

STANDARDS CONFORMANCE

j0(): SVID3, XPG4.2

j1(): SVID3, XPG4.2

jn(): SVID3, XPG4.2