Mercurial > hg > octave-nkf
annotate doc/liboctave/ode.texi @ 20811:a22d8a2eb0e5
fix adaptive strategy in ode solvers.
* script/ode/ode45.m: remove unused option OutputSave
* script/ode/private/integrate_adaptive.m: rewrite algorithm
to be more compatible.
* script/ode/private/runge_kutta_45_dorpri.m: use kahan summation
for time increment.
author | Carlo de Falco <carlo.defalco@polimi.it> |
---|---|
date | Sun, 11 Oct 2015 18:44:58 +0200 |
parents | 4197fc428c7d |
children |
rev | line source |
---|---|
19898
4197fc428c7d
maint: Update copyright notices for 2015.
John W. Eaton <jwe@octave.org>
parents:
19790
diff
changeset
|
1 @c Copyright (C) 1996-2015 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 | |
2333 | 19 @node Ordinary Differential Equations, Differential Algebraic Equations, Nonlinear Equations, Top |
20 @chapter Ordinary Differential Equations | |
21 @cindex ODE | |
22 | |
23 @deftypefn {} {}ODE_options (void) | |
24 @deftypefnx {} {}ODE_options (const ODE_options &@var{opt}) | |
25 @end deftypefn | |
26 | |
27 @deftypefn {} ODE_options& {operator =} (const ODE_options &@var{opt}) | |
28 @end deftypefn | |
29 | |
30 @deftypefn {} void init (void) | |
31 @end deftypefn | |
32 | |
33 @deftypefn {} void copy (const ODE_options &@var{opt}) | |
34 @end deftypefn | |
35 | |
36 @deftypefn {} void set_default_options (void) | |
37 @end deftypefn | |
38 | |
39 @deftypefn {} void set_absolute_tolerance (double @var{val}) | |
40 @end deftypefn | |
41 | |
42 @deftypefn {} void set_initial_step_size (double @var{val}) | |
43 @end deftypefn | |
44 | |
45 @deftypefn {} void set_maximum_step_size (double @var{val}) | |
46 @end deftypefn | |
47 | |
48 @deftypefn {} void set_minimum_step_size (double @var{val}) | |
49 @end deftypefn | |
50 | |
51 @deftypefn {} void set_relative_tolerance (double @var{val}) | |
52 @end deftypefn | |
53 | |
54 @deftypefn {} double absolute_tolerance (void) | |
55 @deftypefnx {} double initial_step_size (void) | |
56 @deftypefnx {} double maximum_step_size (void) | |
57 @deftypefnx {} double minimum_step_size (void) | |
58 @deftypefnx {} double relative_tolerance (void) | |
59 @end deftypefn | |
60 | |
61 @deftypefn {} {}ODE (void) | |
62 @deftypefnx {} {}ODE (int @var{n}) | |
63 @deftypefnx {} {}ODE (const ColumnVector &@var{state}, double @var{time}, const ODEFunc &@var{f}) | |
64 @end deftypefn | |
65 | |
66 @deftypefn {} {virtual int} size (void) const | |
67 @end deftypefn | |
68 | |
69 @deftypefn {} {virtual ColumnVector} state (void) const | |
70 @end deftypefn | |
71 | |
72 @deftypefn {} {virtual double} time (void) const | |
73 @end deftypefn | |
74 | |
75 @deftypefn {} {virtual void} force_restart (void) | |
76 @end deftypefn | |
77 | |
78 @deftypefn {} {virtual void} initialize (const ColumnVector &@var{x}, double @var{t}) | |
79 @end deftypefn | |
80 | |
81 @deftypefn {} {virtual void} set_stop_time (double @var{t}) | |
82 @end deftypefn | |
83 | |
84 @deftypefn {} {virtual void} clear_stop_time (void) | |
85 @end deftypefn | |
86 | |
87 @deftypefn {} {virtual ColumnVector} integrate (double @var{t}) | |
88 @end deftypefn | |
89 | |
90 @deftypefn {} void integrate (int @var{nsteps}, double @var{tstep}, ostream &@var{s}) | |
91 @end deftypefn | |
92 | |
93 @deftypefn {} Matrix integrate (const ColumnVector &@var{tout}) | |
94 @deftypefnx {} Matrix integrate (const ColumnVector &@var{tout}, const ColumnVector &@var{tcrit}) | |
95 @end deftypefn |