Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most
[dragonfly.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: src/lib/libm/common_source/j0.3,v 1.5.2.4 2001/08/17 15:43:05 ru Exp $
34 .\" $DragonFly: src/lib/libm/common_source/Attic/j0.3,v 1.2 2003/06/17 04:26:50 dillon Exp $
35 .\"
36 .Dd April 19, 1994
37 .Dt J0 3
38 .Os
39 .Sh NAME
40 .Nm j0 ,
41 .Nm j1 ,
42 .Nm jn ,
43 .Nm y0 ,
44 .Nm y1 ,
45 .Nm yn
46 .Nd bessel functions of first and second kind
47 .Sh LIBRARY
48 .Lb libm
49 .Sh SYNOPSIS
50 .Fd #include <math.h>
51 .Ft double
52 .Fn j0 "double x"
53 .Ft double
54 .Fn j1 "double x"
55 .Ft double
56 .Fn jn "int n" "double x"
57 .Ft double
58 .Fn y0 "double x"
59 .Ft double
60 .Fn y1 "double x"
61 .Ft double
62 .Fn yn "int n" "double x"
63 .Sh DESCRIPTION
64 The functions
65 .Fn j0
66 and
67 .Fn j1
68 compute the
69 .Em Bessel function of the first kind of the order
70 0 and the
71 .Em order
72 1, respectively,
73 for the
74 real value
75 .Fa x ;
76 the function
77 .Fn jn
78 computes the
79 .Em "Bessel function of the first kind of the integer order"
80 .Fa n
81 for the real value
82 .Fa x .
83 .Pp
84 The functions
85 .Fn y0
86 and
87 .Fn y1
88 compute the linearly independent
89 .Em Bessel function of the second kind of the order
90 0 and the
91 .Em order
92 1, respectively,
93 for the positive
94 .Em integer
95 value
96 .Fa x
97 (expressed as a double);
98 the function
99 .Fn yn
100 computes the
101 .Em "Bessel function of the second kind for the integer order"
102 .Fa n
103 for the positive
104 .Em integer
105 value
106 .Fa x
107 (expressed as a double).
108 .Sh RETURN VALUES
109 If these functions are successful,
110 the computed value is returned.
111 On the
112 .Tn VAX
113 and
114 .Tn Tahoe
115 architectures,
116 a negative
117 .Fa x
118 value
119 results in an error; the global
120 variable
121 .Va errno
122 is set to
123 .Er EDOM
124 and a reserve operand fault is generated.
125 .Sh SEE ALSO
126 .Xr infnan 3 ,
127 .Xr math 3
128 .Sh HISTORY
129 A set of these functions
130 function appeared in
131 .At v7 .