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, created this page, based on material from j0.3.
16 .TH Y0 3 2021-03-22 "" "Linux Programmer's Manual"
18 y0, y0f, y0l, y1, y1f, y1l, yn, ynf, ynl \-
19 Bessel functions of the second kind
24 .BI "double y0(double " x );
25 .BI "double y1(double " x );
26 .BI "double yn(int " n ", double " x );
28 .BI "float y0f(float " x );
29 .BI "float y1f(float " x );
30 .BI "float ynf(int " n ", float " x );
32 .BI "long double y0l(long double " x );
33 .BI "long double y1l(long double " x );
34 .BI "long double ynl(int " n ", long double " x );
40 Feature Test Macro Requirements for glibc (see
41 .BR feature_test_macros (7)):
49 || /* Since glibc 2.19: */ _DEFAULT_SOURCE
50 || /* Glibc <= 2.19: */ _SVID_SOURCE || _BSD_SOURCE
61 || (_ISOC99_SOURCE && _XOPEN_SOURCE)
62 || /* Since glibc 2.19: */ _DEFAULT_SOURCE
63 || /* Glibc <= 2.19: */ _SVID_SOURCE || _BSD_SOURCE
70 functions return Bessel functions of
72 of the second kind of orders 0 and 1, respectively.
76 returns the Bessel function of
78 of the second kind of order
90 functions are versions that take and return
98 functions are versions that take and return
102 On success, these functions return the appropriate
103 Bessel value of the second kind for
108 is a NaN, a NaN is returned.
113 a domain error occurs,
114 and the functions return
120 (POSIX.1-2001 also allows a NaN return for this case.)
126 and the functions return
133 If the result underflows,
134 a range error occurs,
135 and the functions return 0.0
137 If the result overflows,
138 a range error occurs,
139 and the functions return
145 (POSIX.1-2001 also allows a 0.0 return for this case.)
149 for information on how to determine whether an error has occurred
150 when calling these functions.
152 The following errors can occur:
154 Domain error: \fIx\fP is negative
158 An invalid floating-point exception
162 Pole error: \fIx\fP is 0.0
163 .\" Before POSIX.1-2001 TC2, this was (inconsistently) specified
164 .\" as a range error.
173 Range error: result underflow
174 .\" e.g., y0(1e33) on glibc 2.8/x86-32
180 exception is returned by
181 .\" This is intended behavior
182 .\" See http://sources.redhat.com/bugzilla/show_bug.cgi?id=6806
186 Range error: result overflow
187 .\" e.g., yn(10, 1e-40) on glibc 2.8/x86-32
192 An overflow floating-point exception
196 For an explanation of the terms used in this section, see
204 Interface Attribute Value
209 T} Thread safety MT-Safe
214 T} Thread safety MT-Safe
219 T} Thread safety MT-Safe
225 The functions returning
227 conform to SVr4, 4.3BSD,
228 POSIX.1-2001, POSIX.1-2008.
229 The others are nonstandard functions that also exist on the BSDs.
232 .\" http://sourceware.org/bugzilla/show_bug.cgi?id=6807
233 these functions misdiagnosed pole errors:
241 exception was raised.
244 .\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=6808
247 for "range error: result underflow".
249 In glibc version 2.3.2 and earlier,
250 .\" Actually, 2.3.2 is the earliest test result I have; so yet
251 .\" to confirm if this error occurs only in 2.3.2.
252 these functions do not raise an invalid floating-point exception
254 when a domain error occurs.