1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
3 .\" <mtk.manpages@gmail.com>
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date. The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein. The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" References consulted:
26 .\" Linux libc source code
27 .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
29 .\" Modified Sat Jul 24 19:08:17 1993 by Rik Faith (faith@cs.unc.edu)
30 .\" Modified 2002-08-25, aeb
31 .\" Modified 2004-11-12 as per suggestion by Fabian Kreutz/AEB
32 .\" 2008-07-24, mtk, moved yxx() material into separate y0.3 page
34 .TH J0 3 2008-08-05 "" "Linux Programmer's Manual"
36 j0, j0f, j0l, j1, j1f, j1l, jn, jnf, jnl \-
37 Bessel functions of the first kind
43 .BI "double j0(double " x );
45 .BI "double j1(double " x );
47 .BI "double jn(int " n ", double " x );
49 .BI "float j0f(float " x );
51 .BI "float j1f(float " x );
53 .BI "float jnf(int " n ", float " x );
55 .BI "long double j0l(long double " x );
57 .BI "long double j1l(long double " x );
59 .BI "long double jnl(int " n ", long double " x );
64 Feature Test Macro Requirements for glibc (see
65 .BR feature_test_macros (7)):
72 _SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE
80 _SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE\ >=\ 600
81 .\" Also seems to work: -std=c99 -D_XOPEN_SOURCE
88 functions return Bessel functions of \fIx\fP
89 of the first kind of orders 0 and 1, respectively.
93 returns the Bessel function of \fIx\fP of the first kind of order \fIn\fP.
99 etc. functions are versions that take and return
103 values, respectively.
105 On success, these functions return the appropriate
106 Bessel value of the first kind for
111 is a NaN, a NaN is returned.
115 is too large in magnitude,
116 or the result underflows,
117 a range error occurs,
118 and the return value is 0.
122 for information on how to determine whether an error has occurred
123 when calling these functions.
125 The following errors can occur:
127 Range error: result underflow, or \fIx\fP is too large in magnitude
131 .\" An underflow floating-point exception
132 .\" .RB ( FE_UNDERFLOW )
135 These functions do not raise exceptions for
136 .BR fetestexcept (3).
137 .\" FIXME . Is it intentional that these functions do not raise exceptions?
139 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6805
141 The functions returning
143 conform to SVr4, 4.3BSD,
145 The others are nonstandard functions that also exist on the BSDs.
147 There are errors of up to 2e\-16 in the values returned by
152 for values of \fIx\fP between \-8 and 8.