Mercurial > hg > octave-nkf
annotate doc/liboctave/quad.texi @ 19822:2f4406e9dad6
maint: Periodic merge of gui-release to default.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 23 Jan 2015 16:40:25 -0500 |
parents | 446c46af4b42 |
children | 4197fc428c7d |
rev | line source |
---|---|
17744
d63878346099
maint: Update copyright notices for release.
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
1 @c Copyright (C) 1996-2013 John W. Eaton |
7018 | 2 @c |
3 @c This file is part of Octave. | |
4 @c | |
5 @c Octave is free software; you can redistribute it and/or modify it | |
6 @c under the terms of the GNU General Public License as published by the | |
7 @c Free Software Foundation; either version 3 of the License, or (at | |
8 @c your option) any later version. | |
19790
446c46af4b42
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
17744
diff
changeset
|
9 @c |
7018 | 10 @c Octave is distributed in the hope that it will be useful, but WITHOUT |
11 @c ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
12 @c FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
13 @c for more details. | |
19790
446c46af4b42
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
17744
diff
changeset
|
14 @c |
7018 | 15 @c You should have received a copy of the GNU General Public License |
16 @c along with Octave; see the file COPYING. If not, see | |
17 @c <http://www.gnu.org/licenses/>. | |
18 | |
2657 | 19 @node Quadrature, Ordinary Differential Equations, Optimization, Top |
2333 | 20 @chapter Quadrature |
21 @cindex quadrature | |
22 @cindex numerical integration | |
23 @cindex integration | |
24 | |
5647 | 25 @deftypefn {} {} Quad (integrand_fcn @var{fcn}) |
26 @deftypefnx {} {} Quad (integrand_fcn @var{fcn}, double @var{abs}, double @var{rel}) | |
2333 | 27 @end deftypefn |
28 | |
29 @deftypefn {} {virtual double} integrate (void) | |
30 @deftypefnx {} {virtual double} integrate (int &@var{ier}) | |
31 @deftypefnx {} {virtual double} integrate (int &@var{ier}, int &@var{neval}) | |
32 @deftypefnx {} {virtual double} integrate (int &@var{ier}, int &@var{neval}, double &@var{abserr}) = 0 | |
33 @end deftypefn | |
34 | |
5647 | 35 @deftypefn {} {} Quad_options (void) |
36 @deftypefnx {} {} Quad_options (const Quad_options &@var{opt}) | |
2333 | 37 @end deftypefn |
38 | |
39 @deftypefn {} Quad_options& {operator =} (const Quad_options &@var{opt}) | |
40 @end deftypefn | |
41 | |
42 @deftypefn {} void init (void) | |
43 @end deftypefn | |
44 | |
45 @deftypefn {} void copy (const Quad_options &@var{opt}) | |
46 @end deftypefn | |
47 | |
48 @deftypefn {} void set_default_options (void) | |
49 @end deftypefn | |
50 | |
51 @deftypefn {} void set_absolute_tolerance (double @var{val}) | |
52 @end deftypefn | |
53 | |
54 @deftypefn {} void set_relative_tolerance (double @var{val}) | |
55 @end deftypefn | |
56 | |
57 @deftypefn {} double absolute_tolerance (void) | |
58 @deftypefnx {} double relative_tolerance (void) | |
59 @end deftypefn | |
60 | |
5647 | 61 @deftypefn {} {} DefQuad (integrand_fcn @var{fcn}) |
62 @deftypefnx {} {} DefQuad (integrand_fcn @var{fcn}, double @var{ll}, double @var{ul}) | |
63 @deftypefnx {} {} DefQuad (integrand_fcn @var{fcn}, double @var{ll}, double @var{ul}, double @var{abs}, double @var{rel}) | |
64 @deftypefnx {} {} DefQuad (integrand_fcn @var{fcn}, double @var{ll}, double @var{ul}, const ColumnVector &@var{sing}) | |
65 @deftypefnx {} {} DefQuad (integrand_fcn @var{fcn}, const ColumnVector &@var{sing}, double @var{abs}, double @var{rel}) | |
66 @deftypefnx {} {} DefQuad (integrand_fcn @var{fcn}, const ColumnVector &@var{sing}) | |
67 @deftypefnx {} {} DefQuad (integrand_fcn @var{fcn}, double @var{ll}, double @var{ul}, const ColumnVector &@var{sing}, double @var{abs}, double @var{rel}) | |
2333 | 68 @end deftypefn |
69 | |
5647 | 70 @deftypefn {} {} IndefQuad (integrand_fcn @var{fcn}) |
71 @deftypefnx {} {} IndefQuad (integrand_fcn @var{fcn}, double @var{b}, IntegralType @var{t}) | |
72 @deftypefnx {} {} IndefQuad (integrand_fcn @var{fcn}, double @var{b}, IntegralType @var{t}, double @var{abs}, double @var{rel}) | |
73 @deftypefnx {} {} IndefQuad (integrand_fcn @var{fcn}, double @var{abs}, double @var{rel}) | |
2333 | 74 @end deftypefn |
75 | |
2657 | 76 @menu |
19790
446c46af4b42
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
17744
diff
changeset
|
77 * Collocation Weights:: |
2657 | 78 @end menu |
79 | |
80 @node Collocation Weights, , Quadrature, Quadrature | |
2656 | 81 @section Collocation Weights |
2333 | 82 @cindex orthogonal collocation |
83 @cindex collocation weights | |
84 | |
5647 | 85 @deftypefn {} {} CollocWt (void) |
86 @deftypefnx {} {} CollocWt (int @var{n}, int @var{inc_l}, int @var{inc_r}) | |
87 @deftypefnx {} {} CollocWt (int @var{n}, int @var{inc_l}, int @var{inc_r}, double @var{l}, double @var{r}) | |
88 @deftypefnx {} {} CollocWt (int @var{n}, double @var{a}, double @var{b}, int @var{inc_l}, int @var{inc_r}) | |
89 @deftypefnx {} {} CollocWt (int @var{n}, int @var{inc_l}, int @var{inc_r}, double @var{l}, double @var{r}) | |
90 @deftypefnx {} {} CollocWt (const CollocWt&) | |
2333 | 91 @end deftypefn |
92 | |
93 @deftypefn {} CollocWt& {operator =} (const CollocWt&) | |
94 @end deftypefn | |
95 | |
96 @deftypefn {} CollocWt& resize (int @var{ncol}) | |
97 @end deftypefn | |
98 | |
99 @deftypefn {} CollocWt& add_left (void) | |
100 @deftypefnx {} CollocWt& add_right (void) | |
101 @end deftypefn | |
102 | |
103 @deftypefn {} CollocWt& delete_left (void) | |
104 @deftypefnx {} CollocWt& delete_right (void) | |
105 @end deftypefn | |
106 | |
107 @deftypefn {} CollocWt& set_left (double @var{val}) | |
108 @deftypefnx {} CollocWt& set_right (double @var{val}) | |
109 @end deftypefn | |
110 | |
111 @deftypefn {} CollocWt& set_alpha (double @var{val}) | |
112 @deftypefnx {} CollocWt& set_beta (double @var{val}) | |
113 @end deftypefn | |
114 | |
115 @deftypefn {} int ncol (void) const | |
116 @end deftypefn | |
117 | |
118 @deftypefn {} int left_included (void) const | |
119 @deftypefnx {} int right_included (void) const | |
120 @end deftypefn | |
121 | |
122 @deftypefn {} double left (void) const | |
123 @deftypefnx {} double right (void) const | |
124 @deftypefnx {} double width (void) const | |
125 @end deftypefn | |
126 | |
127 @deftypefn {} double alpha (void) const | |
128 @deftypefnx {} double beta (void) const | |
129 @end deftypefn | |
130 | |
131 @deftypefn {} ColumnVector roots (void) | |
132 @deftypefnx {} ColumnVector quad (void) | |
133 @deftypefnx {} ColumnVector quad_weights (void) | |
134 @end deftypefn | |
135 | |
136 @deftypefn {} Matrix first (void) | |
137 @deftypefnx {} Matrix second (void) | |
138 @end deftypefn | |
139 | |
140 @deftypefn {} {ostream&} {operator <<} (ostream &@var{os}, const CollocWt &@var{c}) | |
141 @end deftypefn |