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 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
7 .\" References consulted:
8 .\" Linux libc source code
9 .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
11 .\" Modified Sat Jul 24 19:08:17 1993 by Rik Faith (faith@cs.unc.edu)
12 .\" Modified 2002-08-25, aeb
13 .\" Modified 2004-11-12 as per suggestion by Fabian Kreutz/AEB
14 .\" 2008-07-24, mtk, moved yxx() material into separate y0.3 page
16 .TH J0 3 2021-03-22 "" "Linux Programmer's Manual"
18 j0, j0f, j0l, j1, j1f, j1l, jn, jnf, jnl \-
19 Bessel functions of the first kind
22 .RI ( libm ", " \-lm )
27 .BI "double j0(double " x );
28 .BI "double j1(double " x );
29 .BI "double jn(int " n ", double " x );
31 .BI "float j0f(float " x );
32 .BI "float j1f(float " x );
33 .BI "float jnf(int " n ", float " x );
35 .BI "long double j0l(long double " x );
36 .BI "long double j1l(long double " x );
37 .BI "long double jnl(int " n ", long double " x );
41 Feature Test Macro Requirements for glibc (see
42 .BR feature_test_macros (7)):
50 || /* Since glibc 2.19: */ _DEFAULT_SOURCE
51 || /* Glibc <= 2.19: */ _SVID_SOURCE || _BSD_SOURCE
62 || (_ISOC99_SOURCE && _XOPEN_SOURCE)
63 || /* Since glibc 2.19: */ _DEFAULT_SOURCE
64 || /* Glibc <= 2.19: */ _SVID_SOURCE || _BSD_SOURCE
71 functions return Bessel functions of
73 of the first kind of orders 0 and 1, respectively.
77 returns the Bessel function of
79 of the first kind of order
87 functions are versions that take and return
95 functions are versions that take and return
99 On success, these functions return the appropriate
100 Bessel value of the first kind for
105 is a NaN, a NaN is returned.
109 is too large in magnitude,
110 or the result underflows,
111 a range error occurs,
112 and the return value is 0.
116 for information on how to determine whether an error has occurred
117 when calling these functions.
119 The following errors can occur:
121 Range error: result underflow, or \fIx\fP is too large in magnitude
126 These functions do not raise exceptions for
127 .BR fetestexcept (3).
129 .\" This is intentional.
130 .\" See http://sources.redhat.com/bugzilla/show_bug.cgi?id=6805
132 For an explanation of the terms used in this section, see
140 Interface Attribute Value
145 T} Thread safety MT-Safe
150 T} Thread safety MT-Safe
155 T} Thread safety MT-Safe
161 The functions returning
163 conform to SVr4, 4.3BSD,
164 POSIX.1-2001, and POSIX.1-2008.
165 The others are nonstandard functions that also exist on the BSDs.
167 There are errors of up to 2e\-16 in the values returned by