]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/libm/common_source/j0.3
unfinished sblive driver, playback/mixer only for now - not enabled in
[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 BSD 4
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 SYNOPSIS
47 .Fd #include <math.h>
48 .Ft double
49 .Fn j0 "double x"
50 .Ft double
51 .Fn j1 "double x"
52 .Ft double
53 .Fn jn "int n" "double x"
54 .Ft double
55 .Fn y0 "double x"
56 .Ft double
57 .Fn y1 "double x"
58 .Ft double
59 .Fn yn "int n" "double x"
60 .Sh DESCRIPTION
61 The functions
62 .Fn j0
63 and
64 .Fn j1
65 compute the
66 .Em Bessel function of the first kind of the order
67 0 and the
68 .Em order
69 1, respectively,
70 for the
71 real value
72 .Fa x ;
73 the function
74 .Fn jn
75 computes the
76 .Em Bessel function of the first kind of the integer order
77 .Fa n
78 for the real value
79 .Fa x .
80 .Pp
81 The functions
82 .Fn y0
83 and
84 .Fn y1
85 compute the linearly independent
86 .Em Bessel function of the second kind of the order
87 0 and the
88 .Em order
89 1, respectively,
90 for the positive
91 .Em integer
92 value
93 .Fa x
94 (expressed as a double);
95 the function
96 .Fn yn
97 computes the
98 .Em Bessel function of the second kind for the integer order
99 .Fa n
100 for the positive 
101 .Em integer
102 value
103 .Fa x
104 (expressed as a double).
105 .Sh RETURN VALUES
106 If these functions are successful,
107 the computed value is returned.
108 On the
109 .Tn VAX
110 and
111 .Tn Tahoe
112 architectures,
113 a negative
114 .Fa x
115 value
116 results in an error; the global
117 variable
118 .Va errno
119 is set to
120 .Er EDOM
121 and a reserve operand fault is generated.
122 .Sh SEE ALSO
123 .Xr infnan 3 ,
124 .Xr math 3
125 .Sh HISTORY
126 A set of these functions
127 function appeared in
128 .At v7 .