Mercurial > hg > octave-lyh
annotate scripts/specfun/bessel.m @ 10821:693e22af08ae
Grammarcheck documentation of m-files
Add newlines between @item fields for readability.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Mon, 26 Jul 2010 21:25:36 -0700 |
parents | be55736a0783 |
children | fd0a3ac60b0e |
rev | line source |
---|---|
9245 | 1 ## Copyright (C) 1996, 1997, 1999, 2000, 2005, 2007, 2008, 2009 |
2 ## John W. Eaton | |
3276 | 3 ## |
4 ## This file is part of Octave. | |
5 ## | |
6 ## Octave is free software; you can redistribute it and/or modify it | |
7 ## under the terms of the GNU General Public License as published by | |
7016 | 8 ## the Free Software Foundation; either version 3 of the License, or (at |
9 ## your option) any later version. | |
3276 | 10 ## |
11 ## Octave is distributed in the hope that it will be useful, but | |
12 ## WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 ## General Public License for more details. | |
15 ## | |
16 ## You should have received a copy of the GNU General Public License | |
7016 | 17 ## along with Octave; see the file COPYING. If not, see |
18 ## <http://www.gnu.org/licenses/>. | |
3276 | 19 |
3321 | 20 ## -*- texinfo -*- |
10793
be55736a0783
Grammarcheck the documentation from m-files.
Rik <octave@nomad.inbox5.com>
parents:
9245
diff
changeset
|
21 ## @deftypefn {Loadable Function} {[@var{j}, @var{ierr}] =} besselj (@var{alpha}, @var{x}, @var{opt}) |
7173 | 22 ## @deftypefnx {Loadable Function} {[@var{y}, @var{ierr}] =} bessely (@var{alpha}, @var{x}, @var{opt}) |
23 ## @deftypefnx {Loadable Function} {[@var{i}, @var{ierr}] =} besseli (@var{alpha}, @var{x}, @var{opt}) | |
24 ## @deftypefnx {Loadable Function} {[@var{k}, @var{ierr}] =} besselk (@var{alpha}, @var{x}, @var{opt}) | |
25 ## @deftypefnx {Loadable Function} {[@var{h}, @var{ierr}] =} besselh (@var{alpha}, @var{k}, @var{x}, @var{opt}) | |
26 ## Compute Bessel or Hankel functions of various kinds: | |
27 ## | |
3321 | 28 ## @table @code |
29 ## @item besselj | |
9051
1bf0ce0930be
Grammar check TexInfo in all .m files
Rik <rdrider0-list@yahoo.com>
parents:
8920
diff
changeset
|
30 ## Bessel functions of the first kind. If the argument @var{opt} is supplied, |
8278
ab0674a8b345
fix scaling factor for negative alpha in zbesi,cbesi
Brian Gough <bjg@gnu.org>
parents:
7173
diff
changeset
|
31 ## the result is multiplied by @code{exp(-abs(imag(x)))}. |
10821
693e22af08ae
Grammarcheck documentation of m-files
Rik <octave@nomad.inbox5.com>
parents:
10793
diff
changeset
|
32 ## |
3321 | 33 ## @item bessely |
9051
1bf0ce0930be
Grammar check TexInfo in all .m files
Rik <rdrider0-list@yahoo.com>
parents:
8920
diff
changeset
|
34 ## Bessel functions of the second kind. If the argument @var{opt} is supplied, |
8278
ab0674a8b345
fix scaling factor for negative alpha in zbesi,cbesi
Brian Gough <bjg@gnu.org>
parents:
7173
diff
changeset
|
35 ## the result is multiplied by @code{exp(-abs(imag(x)))}. |
10821
693e22af08ae
Grammarcheck documentation of m-files
Rik <octave@nomad.inbox5.com>
parents:
10793
diff
changeset
|
36 ## |
3321 | 37 ## @item besseli |
10793
be55736a0783
Grammarcheck the documentation from m-files.
Rik <octave@nomad.inbox5.com>
parents:
9245
diff
changeset
|
38 ## Modified Bessel functions of the first kind. If the argument @var{opt} is |
be55736a0783
Grammarcheck the documentation from m-files.
Rik <octave@nomad.inbox5.com>
parents:
9245
diff
changeset
|
39 ## supplied, |
8278
ab0674a8b345
fix scaling factor for negative alpha in zbesi,cbesi
Brian Gough <bjg@gnu.org>
parents:
7173
diff
changeset
|
40 ## the result is multiplied by @code{exp(-abs(real(x)))}. |
10821
693e22af08ae
Grammarcheck documentation of m-files
Rik <octave@nomad.inbox5.com>
parents:
10793
diff
changeset
|
41 ## |
3321 | 42 ## @item besselk |
10793
be55736a0783
Grammarcheck the documentation from m-files.
Rik <octave@nomad.inbox5.com>
parents:
9245
diff
changeset
|
43 ## Modified Bessel functions of the second kind. If the argument @var{opt} is |
be55736a0783
Grammarcheck the documentation from m-files.
Rik <octave@nomad.inbox5.com>
parents:
9245
diff
changeset
|
44 ## supplied, |
8278
ab0674a8b345
fix scaling factor for negative alpha in zbesi,cbesi
Brian Gough <bjg@gnu.org>
parents:
7173
diff
changeset
|
45 ## the result is multiplied by @code{exp(x)}. |
10821
693e22af08ae
Grammarcheck documentation of m-files
Rik <octave@nomad.inbox5.com>
parents:
10793
diff
changeset
|
46 ## |
7173 | 47 ## @item besselh |
48 ## Compute Hankel functions of the first (@var{k} = 1) or second (@var{k} | |
10793
be55736a0783
Grammarcheck the documentation from m-files.
Rik <octave@nomad.inbox5.com>
parents:
9245
diff
changeset
|
49 ## = 2) kind. If the argument @var{opt} is supplied, the result is multiplied |
be55736a0783
Grammarcheck the documentation from m-files.
Rik <octave@nomad.inbox5.com>
parents:
9245
diff
changeset
|
50 ## by |
8278
ab0674a8b345
fix scaling factor for negative alpha in zbesi,cbesi
Brian Gough <bjg@gnu.org>
parents:
7173
diff
changeset
|
51 ## @code{exp (-I*@var{x})} for @var{k} = 1 or @code{exp (I*@var{x})} for |
ab0674a8b345
fix scaling factor for negative alpha in zbesi,cbesi
Brian Gough <bjg@gnu.org>
parents:
7173
diff
changeset
|
52 ## @var{k} = 2. |
3321 | 53 ## @end table |
7173 | 54 ## |
3321 | 55 ## If @var{alpha} is a scalar, the result is the same size as @var{x}. |
7173 | 56 ## If @var{x} is a scalar, the result is the same size as @var{alpha}. |
57 ## If @var{alpha} is a row vector and @var{x} is a column vector, the | |
58 ## result is a matrix with @code{length (@var{x})} rows and | |
59 ## @code{length (@var{alpha})} columns. Otherwise, @var{alpha} and | |
60 ## @var{x} must conform and the result will be the same size. | |
61 ## | |
9051
1bf0ce0930be
Grammar check TexInfo in all .m files
Rik <rdrider0-list@yahoo.com>
parents:
8920
diff
changeset
|
62 ## The value of @var{alpha} must be real. The value of @var{x} may be |
7173 | 63 ## complex. |
64 ## | |
65 ## If requested, @var{ierr} contains the following status information | |
66 ## and is the same size as the result. | |
67 ## | |
68 ## @enumerate 0 | |
69 ## @item | |
70 ## Normal return. | |
10821
693e22af08ae
Grammarcheck documentation of m-files
Rik <octave@nomad.inbox5.com>
parents:
10793
diff
changeset
|
71 ## |
7173 | 72 ## @item |
73 ## Input error, return @code{NaN}. | |
10821
693e22af08ae
Grammarcheck documentation of m-files
Rik <octave@nomad.inbox5.com>
parents:
10793
diff
changeset
|
74 ## |
7173 | 75 ## @item |
76 ## Overflow, return @code{Inf}. | |
10821
693e22af08ae
Grammarcheck documentation of m-files
Rik <octave@nomad.inbox5.com>
parents:
10793
diff
changeset
|
77 ## |
7173 | 78 ## @item |
79 ## Loss of significance by argument reduction results in less than | |
80 ## half of machine accuracy. | |
10821
693e22af08ae
Grammarcheck documentation of m-files
Rik <octave@nomad.inbox5.com>
parents:
10793
diff
changeset
|
81 ## |
7173 | 82 ## @item |
83 ## Complete loss of significance by argument reduction, return @code{NaN}. | |
10821
693e22af08ae
Grammarcheck documentation of m-files
Rik <octave@nomad.inbox5.com>
parents:
10793
diff
changeset
|
84 ## |
7173 | 85 ## @item |
86 ## Error---no computation, algorithm termination condition not met, | |
87 ## return @code{NaN}. | |
88 ## @end enumerate | |
3321 | 89 ## @end deftypefn |
3276 | 90 |
91 function bessel () | |
92 error ("bessel: you must use besselj, bessely, besseli, or besselk"); | |
93 endfunction | |
3321 | 94 |