]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/libm/common_source/j0.3
mdoc(7) police: Use the new .In macro for #include statements.
[FreeBSD/FreeBSD.git] / lib / libm / common_source / j0.3
1 .\" Copyright (c) 1985, 1991, 1993
2 .\"     The Regents of the University of California.  All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\"    must display the following acknowledgement:
14 .\"     This product includes software developed by the University of
15 .\"     California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\"    may be used to endorse or promote products derived from this software
18 .\"    without specific prior written permission.
19 .\"
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" SUCH DAMAGE.
31 .\"
32 .\"     @(#)j0.3        8.2 (Berkeley) 4/19/94
33 .\" $FreeBSD$
34 .\"
35 .Dd April 19, 1994
36 .Dt J0 3
37 .Os
38 .Sh NAME
39 .Nm j0 ,
40 .Nm j1 ,
41 .Nm jn ,
42 .Nm y0 ,
43 .Nm y1 ,
44 .Nm yn
45 .Nd bessel functions of first and second kind
46 .Sh LIBRARY
47 .Lb libm
48 .Sh SYNOPSIS
49 .In math.h
50 .Ft double
51 .Fn j0 "double x"
52 .Ft double
53 .Fn j1 "double x"
54 .Ft double
55 .Fn jn "int n" "double x"
56 .Ft double
57 .Fn y0 "double x"
58 .Ft double
59 .Fn y1 "double x"
60 .Ft double
61 .Fn yn "int n" "double x"
62 .Sh DESCRIPTION
63 The functions
64 .Fn j0
65 and
66 .Fn j1
67 compute the
68 .Em Bessel function of the first kind of the order
69 0 and the
70 .Em order
71 1, respectively,
72 for the
73 real value
74 .Fa x ;
75 the function
76 .Fn jn
77 computes the
78 .Em "Bessel function of the first kind of the integer order"
79 .Fa n
80 for the real value
81 .Fa x .
82 .Pp
83 The functions
84 .Fn y0
85 and
86 .Fn y1
87 compute the linearly independent
88 .Em Bessel function of the second kind of the order
89 0 and the
90 .Em order
91 1, respectively,
92 for the positive
93 .Em integer
94 value
95 .Fa x
96 (expressed as a double);
97 the function
98 .Fn yn
99 computes the
100 .Em "Bessel function of the second kind for the integer order"
101 .Fa n
102 for the positive
103 .Em integer
104 value
105 .Fa x
106 (expressed as a double).
107 .Sh RETURN VALUES
108 If these functions are successful,
109 the computed value is returned.
110 On the
111 .Tn VAX
112 and
113 .Tn Tahoe
114 architectures,
115 a negative
116 .Fa x
117 value
118 results in an error; the global
119 variable
120 .Va errno
121 is set to
122 .Er EDOM
123 and a reserve operand fault is generated.
124 .Sh SEE ALSO
125 .Xr infnan 3 ,
126 .Xr math 3
127 .Sh HISTORY
128 A set of these functions
129 function appeared in
130 .At v7 .