]>
Commit | Line | Data |
---|---|---|
fea681da MK |
1 | .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) |
2 | .\" | |
3 | .\" Permission is granted to make and distribute verbatim copies of this | |
4 | .\" manual provided the copyright notice and this permission notice are | |
5 | .\" preserved on all copies. | |
6 | .\" | |
7 | .\" Permission is granted to copy and distribute modified versions of this | |
8 | .\" manual under the conditions for verbatim copying, provided that the | |
9 | .\" entire resulting derived work is distributed under the terms of a | |
10 | .\" permission notice identical to this one. | |
c13182ef | 11 | .\" |
fea681da MK |
12 | .\" Since the Linux kernel and libraries are constantly changing, this |
13 | .\" manual page may be incorrect or out-of-date. The author(s) assume no | |
14 | .\" responsibility for errors or omissions, or for damages resulting from | |
15 | .\" the use of the information contained herein. The author(s) may not | |
16 | .\" have taken the same level of care in the production of this manual, | |
17 | .\" which is licensed free of charge, as they might when working | |
18 | .\" professionally. | |
c13182ef | 19 | .\" |
fea681da MK |
20 | .\" Formatted or processed versions of this manual, if unaccompanied by |
21 | .\" the source, must acknowledge the copyright and authors of this work. | |
22 | .\" | |
23 | .\" References consulted: | |
24 | .\" Linux libc source code | |
25 | .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) | |
26 | .\" 386BSD man pages | |
27 | .\" Modified Sat Jul 24 19:08:17 1993 by Rik Faith (faith@cs.unc.edu) | |
28 | .\" Modified 2002-08-25, aeb | |
b4528020 | 29 | .\" Modified 2004-11-12 as per suggestion by Fabian Kreutz/AEB |
fea681da MK |
30 | .\" |
31 | .TH J0 3 2002-08-25 "" "Linux Programmer's Manual" | |
32 | .SH NAME | |
33 | j0, j0f, j0l, j1, j1f, j1l, jn, jnf, jnl, | |
34 | y0, y0f, y0l, y1, y1f, y1l, yn, ynf, ynl \- Bessel functions | |
35 | .SH SYNOPSIS | |
36 | .nf | |
b4528020 | 37 | .B #define _GNU_SOURCE |
fea681da MK |
38 | .B #include <math.h> |
39 | .sp | |
40 | .BI "double j0(double " x ); | |
41 | .br | |
42 | .BI "double j1(double " x ); | |
43 | .br | |
44 | .BI "double jn(int " n ", double " x ); | |
45 | .br | |
46 | .BI "double y0(double " x ); | |
47 | .br | |
48 | .BI "double y1(double " x ); | |
49 | .br | |
50 | .BI "double yn(int " n ", double " x ); | |
51 | .sp | |
52 | .BI "float j0f(float " x ); | |
53 | .br | |
54 | .BI "float j1f(float " x ); | |
55 | .br | |
56 | .BI "float jnf(int " n ", float " x ); | |
57 | .br | |
58 | .BI "float y0f(float " x ); | |
59 | .br | |
60 | .BI "float y1f(float " x ); | |
61 | .br | |
62 | .BI "float ynf(int " n ", float " x ); | |
63 | .sp | |
64 | .BI "long double j0l(long double " x ); | |
65 | .br | |
66 | .BI "long double j1l(long double " x ); | |
67 | .br | |
68 | .BI "long double jnl(int " n ", long double " x ); | |
69 | .br | |
70 | .BI "long double y0l(long double " x ); | |
71 | .br | |
72 | .BI "long double y1l(long double " x ); | |
73 | .br | |
74 | .BI "long double ynl(int " n ", long double " x ); | |
75 | .fi | |
76 | .sp | |
e9329f6d | 77 | Link with \fI-lm\fP. |
fea681da | 78 | .SH DESCRIPTION |
60a90ecd MK |
79 | The |
80 | .BR j0 () | |
81 | and | |
82 | .BR j1 () | |
83 | functions return Bessel functions of \fIx\fP | |
c13182ef | 84 | of the first kind of orders 0 and 1, respectively. |
60a90ecd MK |
85 | The |
86 | .BR jn () | |
87 | function | |
fea681da MK |
88 | returns the Bessel function of \fIx\fP of the first kind of order \fIn\fP. |
89 | .PP | |
60a90ecd MK |
90 | The |
91 | .BR y0 () | |
92 | and | |
93 | .BR y1 () | |
94 | functions return Bessel functions of \fIx\fP | |
c13182ef | 95 | of the second kind of orders 0 and 1, respectively. |
60a90ecd MK |
96 | The |
97 | .BR yn () | |
98 | function | |
fea681da MK |
99 | returns the Bessel function of \fIx\fP of the second kind of order \fIn\fP. |
100 | .PP | |
60a90ecd MK |
101 | For the functions |
102 | .BR y0 (), | |
103 | .BR y1 () | |
104 | and | |
105 | .BR yn (), | |
106 | the value of \fIx\fP | |
c13182ef MK |
107 | must be positive. |
108 | For negative values of \fIx\fP, these functions return | |
2f0af33b | 109 | \-\fBHUGE_VAL\fP. |
fea681da | 110 | .PP |
60a90ecd MK |
111 | The |
112 | .BR j0f () | |
113 | etc. and | |
114 | .BR j0l () | |
115 | etc. functions are versions that take | |
c13182ef MK |
116 | and return |
117 | .I float | |
118 | and | |
68e1685c MK |
119 | .I "long double" |
120 | values, respectively. | |
fea681da | 121 | .SH "CONFORMING TO" |
c13182ef MK |
122 | The functions returning |
123 | .I double | |
68e1685c MK |
124 | conform to SVr4, 4.3BSD, |
125 | POSIX.1-2001. | |
fea681da | 126 | .SH BUGS |
60a90ecd MK |
127 | There are errors of up to 2e\-16 in the values returned by |
128 | .BR j0 (), | |
129 | .BR j1 () | |
130 | and | |
131 | .BR jn () | |
132 | for values of \fIx\fP between \-8 and 8. | |
0a90178c MK |
133 | .SH "SEE ALSO" |
134 | .BR feature_test_macros (7) |