xref: /freebsd/lib/msun/man/j0.3 (revision dc36d6f9bb1753f3808552f3afd30eda9a7b206a)
13a8617a8SJordan K. Hubbard.\" Copyright (c) 1985, 1991 Regents of the University of California.
23a8617a8SJordan K. Hubbard.\" All rights reserved.
33a8617a8SJordan K. Hubbard.\"
43a8617a8SJordan K. Hubbard.\" Redistribution and use in source and binary forms, with or without
53a8617a8SJordan K. Hubbard.\" modification, are permitted provided that the following conditions
63a8617a8SJordan K. Hubbard.\" are met:
73a8617a8SJordan K. Hubbard.\" 1. Redistributions of source code must retain the above copyright
83a8617a8SJordan K. Hubbard.\"    notice, this list of conditions and the following disclaimer.
93a8617a8SJordan K. Hubbard.\" 2. Redistributions in binary form must reproduce the above copyright
103a8617a8SJordan K. Hubbard.\"    notice, this list of conditions and the following disclaimer in the
113a8617a8SJordan K. Hubbard.\"    documentation and/or other materials provided with the distribution.
12*fbbd9655SWarner Losh.\" 3. Neither the name of the University nor the names of its contributors
133a8617a8SJordan K. Hubbard.\"    may be used to endorse or promote products derived from this software
143a8617a8SJordan K. Hubbard.\"    without specific prior written permission.
153a8617a8SJordan K. Hubbard.\"
163a8617a8SJordan K. Hubbard.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
173a8617a8SJordan K. Hubbard.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
183a8617a8SJordan K. Hubbard.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
193a8617a8SJordan K. Hubbard.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
203a8617a8SJordan K. Hubbard.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
213a8617a8SJordan K. Hubbard.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
223a8617a8SJordan K. Hubbard.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
233a8617a8SJordan K. Hubbard.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
243a8617a8SJordan K. Hubbard.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
253a8617a8SJordan K. Hubbard.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
263a8617a8SJordan K. Hubbard.\" SUCH DAMAGE.
273a8617a8SJordan K. Hubbard.\"
28186f6207SSteve Kargl.Dd March 10, 2015
293a8617a8SJordan K. Hubbard.Dt J0 3
30a307d598SRuslan Ermilov.Os
313a8617a8SJordan K. Hubbard.Sh NAME
323a8617a8SJordan K. Hubbard.Nm j0 ,
337a15a32aSJordan K. Hubbard.Nm j0f ,
343a8617a8SJordan K. Hubbard.Nm j1 ,
357a15a32aSJordan K. Hubbard.Nm j1f ,
363a8617a8SJordan K. Hubbard.Nm jn ,
377a15a32aSJordan K. Hubbard.Nm jnf ,
383a8617a8SJordan K. Hubbard.Nm y0 ,
397a15a32aSJordan K. Hubbard.Nm y0f ,
403a8617a8SJordan K. Hubbard.Nm y1 ,
417a15a32aSJordan K. Hubbard.Nm y1f ,
427a15a32aSJordan K. Hubbard.Nm yn ,
437a15a32aSJordan K. Hubbard.Nm ynf
445308354bSBruce Evans.Nd Bessel functions of first and second kind
4564890443SBruce Evans.Sh LIBRARY
4664890443SBruce Evans.Lb libm
473a8617a8SJordan K. Hubbard.Sh SYNOPSIS
4832eef9aeSRuslan Ermilov.In math.h
493a8617a8SJordan K. Hubbard.Ft double
503a8617a8SJordan K. Hubbard.Fn j0 "double x"
517a15a32aSJordan K. Hubbard.Ft float
527a15a32aSJordan K. Hubbard.Fn j0f "float x"
533a8617a8SJordan K. Hubbard.Ft double
543a8617a8SJordan K. Hubbard.Fn j1 "double x"
557a15a32aSJordan K. Hubbard.Ft float
567a15a32aSJordan K. Hubbard.Fn j1f "float x"
573a8617a8SJordan K. Hubbard.Ft double
583a8617a8SJordan K. Hubbard.Fn jn "int n" "double x"
597a15a32aSJordan K. Hubbard.Ft float
607a15a32aSJordan K. Hubbard.Fn jnf "int n" "float x"
613a8617a8SJordan K. Hubbard.Ft double
623a8617a8SJordan K. Hubbard.Fn y0 "double x"
637a15a32aSJordan K. Hubbard.Ft float
647a15a32aSJordan K. Hubbard.Fn y0f "float x"
653a8617a8SJordan K. Hubbard.Ft double
663a8617a8SJordan K. Hubbard.Fn y1 "double x"
677a15a32aSJordan K. Hubbard.Ft float
687a15a32aSJordan K. Hubbard.Fn y1f "float x"
693a8617a8SJordan K. Hubbard.Ft double
703a8617a8SJordan K. Hubbard.Fn yn "int n" "double x"
717a15a32aSJordan K. Hubbard.Ft float
727a15a32aSJordan K. Hubbard.Fn ynf "int n" "float x"
733a8617a8SJordan K. Hubbard.Sh DESCRIPTION
743a8617a8SJordan K. HubbardThe functions
757a15a32aSJordan K. Hubbard.Fn j0 ,
767a15a32aSJordan K. Hubbard.Fn j0f ,
77186f6207SSteve Kargl.Fn j1 ,
787a15a32aSJordan K. Hubbardand
797a15a32aSJordan K. Hubbard.Fn j1f
80186f6207SSteve Karglcompute the Bessel function of the first kind of orders
81186f6207SSteve Kargl0 and 1 for the real value
823a8617a8SJordan K. Hubbard.Fa x ;
837a15a32aSJordan K. Hubbardthe functions
843a8617a8SJordan K. Hubbard.Fn jn
857a15a32aSJordan K. Hubbardand
867a15a32aSJordan K. Hubbard.Fn jnf
87186f6207SSteve Karglcompute the Bessel function of the first kind of the integer order
883a8617a8SJordan K. Hubbard.Fa n
893a8617a8SJordan K. Hubbardfor the real value
903a8617a8SJordan K. Hubbard.Fa x .
913a8617a8SJordan K. Hubbard.Pp
923a8617a8SJordan K. HubbardThe functions
937a15a32aSJordan K. Hubbard.Fn y0 ,
947a15a32aSJordan K. Hubbard.Fn y0f ,
957a15a32aSJordan K. Hubbard.Fn y1 ,
963a8617a8SJordan K. Hubbardand
977a15a32aSJordan K. Hubbard.Fn y1f
98186f6207SSteve Karglcompute the linearly independent Bessel function of the second kind
99186f6207SSteve Karglof orders 0 and 1 for the positive
1005308354bSBruce Evans.Em real
1013a8617a8SJordan K. Hubbardvalue
1025308354bSBruce Evans.Fa x ;
1037a15a32aSJordan K. Hubbardthe functions
1043a8617a8SJordan K. Hubbard.Fn yn
1057a15a32aSJordan K. Hubbardand
1067a15a32aSJordan K. Hubbard.Fn ynf
107186f6207SSteve Karglcompute the Bessel function of the second kind for the integer order
1083a8617a8SJordan K. Hubbard.Fa n
1093a8617a8SJordan K. Hubbardfor the positive
1105308354bSBruce Evans.Em real
1113a8617a8SJordan K. Hubbardvalue
1125308354bSBruce Evans.Fa x .
1133a8617a8SJordan K. Hubbard.Sh RETURN VALUES
114345241c5SDavid SchultzThese routines return values of their respective Bessel functions.
115345241c5SDavid SchultzFor large positive inputs, they may underflow and return \*(Pm0.
116345241c5SDavid Schultz.Pp
117345241c5SDavid SchultzThe following applies to
118345241c5SDavid Schultz.Fn y0 ,
119345241c5SDavid Schultz.Fn y0f ,
120345241c5SDavid Schultz.Fn y1 ,
121345241c5SDavid Schultz.Fn y1f ,
122345241c5SDavid Schultz.Fn yn ,
123345241c5SDavid Schultzand
124345241c5SDavid Schultz.Fn ynf .
125345241c5SDavid SchultzIf
126345241c5SDavid Schultz.Fa x
127186f6207SSteve Karglis negative, including -\*(If, these routines will generate an invalid
128186f6207SSteve Karglexception and return \*(Na.
129345241c5SDavid SchultzIf
130345241c5SDavid Schultz.Fa x
131186f6207SSteve Karglis \*(Pm0, these routines
132186f6207SSteve Karglwill generate a divide-by-zero exception and return -\*(If.
133186f6207SSteve KarglIf
134186f6207SSteve Kargl.Fa x
135186f6207SSteve Karglis a sufficiently small positive number, then
136186f6207SSteve Kargl.Fn y1 ,
137186f6207SSteve Kargl.Fn y1f ,
138186f6207SSteve Kargl.Fn yn ,
139186f6207SSteve Kargland
140186f6207SSteve Kargl.Fn ynf
141345241c5SDavid Schultzwill generate an overflow exception and return -\*(If.
1423a8617a8SJordan K. Hubbard.Sh SEE ALSO
1434bd9ba3cSMike Pritchard.Xr math 3
144345241c5SDavid Schultz.Sh STANDARDS
145345241c5SDavid SchultzThe
146345241c5SDavid Schultz.Fn j0 ,
147345241c5SDavid Schultz.Fn j1 ,
148345241c5SDavid Schultz.Fn jn ,
149345241c5SDavid Schultz.Fn y0 ,
150345241c5SDavid Schultz.Fn y1 ,
151345241c5SDavid Schultzand
152345241c5SDavid Schultz.Fn yn
153345241c5SDavid Schultzfunctions conform to
154345241c5SDavid Schultz.St -p1003.1-2001 .
155345241c5SDavid SchultzThe
156345241c5SDavid Schultz.Ft float
157345241c5SDavid Schultzversions are extensions.
1583a8617a8SJordan K. Hubbard.Sh HISTORY
1593a8617a8SJordan K. HubbardThis set of functions
1603a8617a8SJordan K. Hubbardappeared in
1613a8617a8SJordan K. Hubbard.At v7 .
162