1Y0(3P)                     POSIX Programmer's Manual                    Y0(3P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       y0, y1, yn — Bessel functions of the second kind
13

SYNOPSIS

15       #include <math.h>
16
17       double y0(double x);
18       double y1(double x);
19       double yn(int n, double x);
20

DESCRIPTION

22       The y0(), y1(), and yn() functions shall compute Bessel functions of  x
23       of the second kind of orders 0, 1, and n, respectively.
24
25       An  application  wishing to check for error situations should set errno
26       to zero and  call  feclearexcept(FE_ALL_EXCEPT)  before  calling  these
27       functions. On return, if errno is non-zero or fetestexcept(FE_INVALID |
28       FE_DIVBYZERO | FE_OVERFLOW | FE_UNDERFLOW) is non-zero,  an  error  has
29       occurred.
30

RETURN VALUE

32       Upon  successful  completion, these functions shall return the relevant
33       Bessel value of x of the second kind.
34
35       If x is NaN, NaN shall be returned.
36
37       If the x argument to these functions  is  negative,  -HUGE_VAL  or  NaN
38       shall be returned, and a domain error may occur.
39
40       If x is 0.0, -HUGE_VAL shall be returned and a pole error may occur.
41
42       If  the correct result would cause underflow, 0.0 shall be returned and
43       a range error may occur.
44
45       If the correct result would cause overflow, -HUGE_VAL or 0.0  shall  be
46       returned and a range error may occur.
47

ERRORS

49       These functions may fail if:
50
51       Domain Error
52                   The value of x is negative.
53
54                   If  the  integer expression (math_errhandling & MATH_ERRNO)
55                   is non-zero, then errno shall be set  to  [EDOM].   If  the
56                   integer  expression  (math_errhandling & MATH_ERREXCEPT) is
57                   non-zero, then the invalid floating-point  exception  shall
58                   be raised.
59
60       Pole Error  The value of x is zero.
61
62                   If  the  integer expression (math_errhandling & MATH_ERRNO)
63                   is non-zero, then errno shall be set to [ERANGE].   If  the
64                   integer  expression  (math_errhandling & MATH_ERREXCEPT) is
65                   non-zero, then the divide-by-zero floating-point  exception
66                   shall be raised.
67
68       Range Error The correct result would cause overflow.
69
70                   If  the  integer expression (math_errhandling & MATH_ERRNO)
71                   is non-zero, then errno shall be set to [ERANGE].   If  the
72                   integer  expression  (math_errhandling & MATH_ERREXCEPT) is
73                   non-zero, then the overflow floating-point exception  shall
74                   be raised.
75
76       Range Error The  value  of  x is too large in magnitude, or the correct
77                   result would cause underflow.
78
79                   If the integer expression (math_errhandling  &  MATH_ERRNO)
80                   is  non-zero,  then errno shall be set to [ERANGE].  If the
81                   integer expression (math_errhandling &  MATH_ERREXCEPT)  is
82                   non-zero, then the underflow floating-point exception shall
83                   be raised.
84
85       The following sections are informative.
86

EXAMPLES

88       None.
89

APPLICATION USAGE

91       On  error,  the  expressions  (math_errhandling   &   MATH_ERRNO)   and
92       (math_errhandling  & MATH_ERREXCEPT) are independent of each other, but
93       at least one of them must be non-zero.
94

RATIONALE

96       None.
97

FUTURE DIRECTIONS

99       None.
100

SEE ALSO

102       feclearexcept(), fetestexcept(), isnan(), j0()
103
104       The Base Definitions volume of POSIX.1‐2017, Section 4.20, Treatment of
105       Error Conditions for Mathematical Functions, <math.h>
106
108       Portions  of  this text are reprinted and reproduced in electronic form
109       from IEEE Std 1003.1-2017, Standard for Information Technology --  Por‐
110       table  Operating System Interface (POSIX), The Open Group Base Specifi‐
111       cations Issue 7, 2018 Edition, Copyright (C) 2018 by the  Institute  of
112       Electrical  and  Electronics Engineers, Inc and The Open Group.  In the
113       event of any discrepancy between this version and the original IEEE and
114       The  Open Group Standard, the original IEEE and The Open Group Standard
115       is the referee document. The original Standard can be  obtained  online
116       at http://www.opengroup.org/unix/online.html .
117
118       Any  typographical  or  formatting  errors that appear in this page are
119       most likely to have been introduced during the conversion of the source
120       files  to  man page format. To report such errors, see https://www.ker
121       nel.org/doc/man-pages/reporting_bugs.html .
122
123
124
125IEEE/The Open Group                  2017                               Y0(3P)
Impressum