Initial import of binutils 2.22 on the new vendor branch
[dragonfly.git] / lib / libm / man / j0.3
1 .\" Copyright (c) 1985, 1991 Regents of the University of California.
2 .\" 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. Neither the name of the University nor the names of its contributors
13 .\"    may be used to endorse or promote products derived from this software
14 .\"    without specific prior written permission.
15 .\"
16 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 .\" SUCH DAMAGE.
27 .\"
28 .\"     from: @(#)j0.3  6.7 (Berkeley) 4/19/91
29 .\"     $NetBSD: j0.3,v 1.16 2003/08/07 16:44:48 agc Exp $
30 .\"     $DragonFly: src/lib/libm/man/j0.3,v 1.1 2005/07/26 21:15:20 joerg Exp $
31 .\"
32 .Dd April 19, 1991
33 .Dt J0 3
34 .Os
35 .Sh NAME
36 .Nm j0 ,
37 .Nm j0f ,
38 .Nm j1 ,
39 .Nm j1f ,
40 .Nm jn ,
41 .Nm jnf ,
42 .Nm y0 ,
43 .Nm y0f ,
44 .Nm y1 ,
45 .Nm y1f ,
46 .Nm yn ,
47 .Nm ynf
48 .Nd Bessel functions of first and second kind
49 .Sh LIBRARY
50 .Lb libm
51 .Sh SYNOPSIS
52 .In math.h
53 .Ft double
54 .Fn j0 "double x"
55 .Ft float
56 .Fn j0f "float x"
57 .Ft double
58 .Fn j1 "double x"
59 .Ft float
60 .Fn j1f "float x"
61 .Ft double
62 .Fn jn "int n" "double x"
63 .Ft float
64 .Fn jnf "int n" "float x"
65 .Ft double
66 .Fn y0 "double x"
67 .Ft float
68 .Fn y0f "float x"
69 .Ft double
70 .Fn y1 "double x"
71 .Ft float
72 .Fn y1f "float x"
73 .Ft double
74 .Fn yn "int n" "double x"
75 .Ft float
76 .Fn ynf "int n" "float x"
77 .Sh DESCRIPTION
78 The functions
79 .Fn j0 ,
80 .Fn j0f ,
81 .Fn j1
82 and
83 .Fn j1f
84 compute the
85 .Em Bessel function of the first kind of the order
86 0 and the
87 .Em order
88 1, respectively,
89 for the
90 real value
91 .Fa x ;
92 the functions
93 .Fn jn
94 and
95 .Fn jnf
96 compute the
97 .Em Bessel function of the first kind of the integer order
98 .Fa n
99 for the real value
100 .Fa x .
101 .Pp
102 The functions
103 .Fn y0 ,
104 .Fn y0f ,
105 .Fn y1
106 and
107 .Fn y1f
108 compute the linearly independent
109 .Em Bessel function of the second kind of the order
110 0 and the
111 .Em order
112 1, respectively,
113 for the
114 positive
115 .Em integer
116 value
117 .Fa x
118 (expressed as a double);
119 the functions
120 .Fn yn
121 and
122 .Fn ynf
123 compute the
124 .Em Bessel function of the second kind for the integer order
125 .Fa n
126 for the positive
127 .Em integer
128 value
129 .Fa x
130 (expressed as a double).
131 .Sh RETURN VALUES
132 If these functions are successful,
133 the computed value is returned, otherwise
134 the global
135 variable
136 .Va errno
137 is set to
138 .Er EDOM
139 and a reserve operand fault is generated.
140 .\" On the
141 .\" .Tn VAX
142 .\" and
143 .\" .Tn Tahoe
144 .\" architectures, a negative
145 .\" .Fa x
146 .\" value
147 .\" results in an error.
148 .Sh SEE ALSO
149 .Xr math 3
150 .\" .Xr matherr 3
151 .Sh HISTORY
152 This set of functions
153 appeared in
154 .At v7 .