annotate scripts/ode/private/runge_kutta_45_dorpri.m @ 20584:eb9e2d187ed2

maint: Use Octave coding conventions in scripts/ode/private dir. * AbsRel_Norm.m, fuzzy_compare.m, hermite_quartic_interpolation.m, integrate_adaptive.m, integrate_const.m, integrate_n_steps.m, kahan.m, ode_struct_value_check.m, odepkg_event_handle.m, odepkg_structure_check.m, runge_kutta_45_dorpri.m, starting_stepsize.m: Wrap long lines to < 80 chars. Use double quotes rather than single quotes where possible. Use ';' at end of keywords "return;" and "break;" Use '##" for stand-alone comments and '#' for end-of-line comments. Use two spaces after period before starting new sentence. Use '!' instead of '~' for logical negation. Use specific form of end (endif, endfor, etc.). Don't use line continuation marker '...' unless necessary.
author Rik <rik@octave.org>
date Sun, 04 Oct 2015 22:18:54 -0700
parents 25623ef2ff4f
children b7ac1e94266e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20568
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
1 ## Copyright (C) 2013, Roberto Porcu' <roberto.porcu@polimi.it>
20572
72cd24aa5f7a Clean up and vetorize Dormant&Prince RK timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20570
diff changeset
2 ## Copyright (C) 2015, Carlo de Falco
20570
6256f6e366ac Fix copyright text in private ode functions
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20568
diff changeset
3 ##
6256f6e366ac Fix copyright text in private ode functions
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20568
diff changeset
4 ## This file is part of Octave.
20568
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
5 ##
20570
6256f6e366ac Fix copyright text in private ode functions
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20568
diff changeset
6 ## Octave is free software; you can redistribute it and/or modify it
6256f6e366ac Fix copyright text in private ode functions
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20568
diff changeset
7 ## under the terms of the GNU General Public License as published by
6256f6e366ac Fix copyright text in private ode functions
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20568
diff changeset
8 ## the Free Software Foundation; either version 3 of the License, or (at
6256f6e366ac Fix copyright text in private ode functions
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20568
diff changeset
9 ## your option) any later version.
20568
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
10 ##
20570
6256f6e366ac Fix copyright text in private ode functions
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20568
diff changeset
11 ## Octave is distributed in the hope that it will be useful, but
6256f6e366ac Fix copyright text in private ode functions
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20568
diff changeset
12 ## WITHOUT ANY WARRANTY; without even the implied warranty of
6256f6e366ac Fix copyright text in private ode functions
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20568
diff changeset
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6256f6e366ac Fix copyright text in private ode functions
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20568
diff changeset
14 ## General Public License for more details.
20568
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
15 ##
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
16 ## You should have received a copy of the GNU General Public License
20570
6256f6e366ac Fix copyright text in private ode functions
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20568
diff changeset
17 ## along with Octave; see the file COPYING. If not, see
6256f6e366ac Fix copyright text in private ode functions
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20568
diff changeset
18 ## <http://www.gnu.org/licenses/>.
20568
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
19
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
20 ## -*- texinfo -*-
20580
25623ef2ff4f doc: Rewrite docstrings for ode* family of functions.
Rik <rik@octave.org>
parents: 20575
diff changeset
21 ## @deftypefn {Function File} {[@var{t_next}, @var{x_next}] =} runge_kutta_45_dorpri (@var{@@fun}, @var{t}, @var{x}, @var{dt}, @var{options}, @var{k_vals_in})
25623ef2ff4f doc: Rewrite docstrings for ode* family of functions.
Rik <rik@octave.org>
parents: 20575
diff changeset
22 ## @deftypefnx {Function File} {[@var{t_next}, @var{x_next}, @var{x_est}] =} runge_kutta_45_dorpri (@var{@@fun}, @var{t}, @var{x}, @var{dt}, @var{options}, @var{k_vals_in})
25623ef2ff4f doc: Rewrite docstrings for ode* family of functions.
Rik <rik@octave.org>
parents: 20575
diff changeset
23 ## @deftypefnx {Function File} {[@var{t_next}, @var{x_next}, @var{x_est}, @var{k_vals_out}] =} runge_kutta_45_dorpri (@var{@@fun}, @var{t}, @var{x}, @var{dt}, @var{options}, @var{k_vals_in})
20568
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
24 ##
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
25 ## This function can be used to integrate a system of ODEs with a given initial
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
26 ## condition @var{x} from @var{t} to @var{t+dt}, with the Dormand-Prince method.
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
27 ## For the definition of this method see
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
28 ## @url{http://en.wikipedia.org/wiki/Dormand%E2%80%93Prince_method}.
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
29 ##
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
30 ## First output argument is the final integration time value.
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
31 ##
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
32 ## Second output parameter is the higher order computed solution at time
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
33 ## @var{t_next} (local extrapolation).
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
34 ##
20580
25623ef2ff4f doc: Rewrite docstrings for ode* family of functions.
Rik <rik@octave.org>
parents: 20575
diff changeset
35 ## Third output parameter is a lower order solution for the estimation of the
25623ef2ff4f doc: Rewrite docstrings for ode* family of functions.
Rik <rik@octave.org>
parents: 20575
diff changeset
36 ## error.
20568
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
37 ##
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
38 ## Fourth output parameter is matrix containing the Runge-Kutta evaluations
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
39 ## to use in a FSAL scheme or for dense output.
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
40 ##
20580
25623ef2ff4f doc: Rewrite docstrings for ode* family of functions.
Rik <rik@octave.org>
parents: 20575
diff changeset
41 ## First input argument is the function describing the system of ODEs to be
25623ef2ff4f doc: Rewrite docstrings for ode* family of functions.
Rik <rik@octave.org>
parents: 20575
diff changeset
42 ## integrated.
20568
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
43 ##
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
44 ## Second input parameter is the first extreme of integration interval.
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
45 ##
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
46 ## Third input argument is the initial condition of the system.
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
47 ##
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
48 ## Fourth input argument is the timestep, that is the length of the
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
49 ## integration interval.
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
50 ##
20580
25623ef2ff4f doc: Rewrite docstrings for ode* family of functions.
Rik <rik@octave.org>
parents: 20575
diff changeset
51 ## Fifth input parameter is optional and describes a set of options useful to
25623ef2ff4f doc: Rewrite docstrings for ode* family of functions.
Rik <rik@octave.org>
parents: 20575
diff changeset
52 ## adapt the computation to what is needed.
20568
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
53 ##
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
54 ## Sixth input parameter is optional and describes the Runge-Kutta evaluations
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
55 ## of the previous step to use in a FSAL scheme.
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
56 ## @end deftypefn
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
57 ##
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
58 ## @seealso{odepkg}
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
59
20575
3339c9bdfe6a Activate FSAL property in dorpri timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20572
diff changeset
60 function [t_out, x_out, x_est, k] = ...
3339c9bdfe6a Activate FSAL property in dorpri timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20572
diff changeset
61 runge_kutta_45_dorpri (f, t, x, dt, varargin)
20568
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
62
20572
72cd24aa5f7a Clean up and vetorize Dormant&Prince RK timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20570
diff changeset
63 persistent a = [0 0 0 0 0 0;
72cd24aa5f7a Clean up and vetorize Dormant&Prince RK timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20570
diff changeset
64 1/5 0 0 0 0 0;
72cd24aa5f7a Clean up and vetorize Dormant&Prince RK timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20570
diff changeset
65 3/40 9/40 0 0 0 0;
72cd24aa5f7a Clean up and vetorize Dormant&Prince RK timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20570
diff changeset
66 44/45 -56/15 32/9 0 0 0;
72cd24aa5f7a Clean up and vetorize Dormant&Prince RK timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20570
diff changeset
67 19372/6561 -25360/2187 64448/6561 -212/729 0 0;
72cd24aa5f7a Clean up and vetorize Dormant&Prince RK timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20570
diff changeset
68 9017/3168 -355/33 46732/5247 49/176 -5103/18656 0;
72cd24aa5f7a Clean up and vetorize Dormant&Prince RK timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20570
diff changeset
69 35/384 0 500/1113 125/192 -2187/6784 11/84];
72cd24aa5f7a Clean up and vetorize Dormant&Prince RK timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20570
diff changeset
70 persistent b = [0 1/5 3/10 4/5 8/9 1 1];
72cd24aa5f7a Clean up and vetorize Dormant&Prince RK timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20570
diff changeset
71 persistent c = [(35/384) 0 (500/1113) (125/192) (-2187/6784) (11/84)];
72cd24aa5f7a Clean up and vetorize Dormant&Prince RK timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20570
diff changeset
72 ## x_est according to Shampine 1986:
72cd24aa5f7a Clean up and vetorize Dormant&Prince RK timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20570
diff changeset
73 ## persistent c_prime = [(1951/21600) 0 (22642/50085) (451/720), ...
72cd24aa5f7a Clean up and vetorize Dormant&Prince RK timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20570
diff changeset
74 ## (-12231/42400) (649/6300) (1/60)];
72cd24aa5f7a Clean up and vetorize Dormant&Prince RK timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20570
diff changeset
75 persistent c_prime = [(5179/57600) 0 (7571/16695) (393/640), ...
72cd24aa5f7a Clean up and vetorize Dormant&Prince RK timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20570
diff changeset
76 (-92097/339200) (187/2100) (1/40)];
72cd24aa5f7a Clean up and vetorize Dormant&Prince RK timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20570
diff changeset
77
72cd24aa5f7a Clean up and vetorize Dormant&Prince RK timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20570
diff changeset
78 s = t + dt * b;
72cd24aa5f7a Clean up and vetorize Dormant&Prince RK timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20570
diff changeset
79 cc = dt * c;
72cd24aa5f7a Clean up and vetorize Dormant&Prince RK timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20570
diff changeset
80 aa = dt * a;
72cd24aa5f7a Clean up and vetorize Dormant&Prince RK timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20570
diff changeset
81 k = zeros (rows (x), 7);
20568
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
82
20575
3339c9bdfe6a Activate FSAL property in dorpri timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20572
diff changeset
83 if (nargin >= 5) # options are passed
3339c9bdfe6a Activate FSAL property in dorpri timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20572
diff changeset
84 args = varargin{1}.vfunarguments;
3339c9bdfe6a Activate FSAL property in dorpri timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20572
diff changeset
85 if (nargin >= 6) # both the options and the k values are passed
3339c9bdfe6a Activate FSAL property in dorpri timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20572
diff changeset
86 k(:,1) = varargin{2}(:,end); # FSAL property
3339c9bdfe6a Activate FSAL property in dorpri timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20572
diff changeset
87 else
3339c9bdfe6a Activate FSAL property in dorpri timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20572
diff changeset
88 k(:,1) = feval (f, t, x, args{:});
3339c9bdfe6a Activate FSAL property in dorpri timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20572
diff changeset
89 endif
3339c9bdfe6a Activate FSAL property in dorpri timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20572
diff changeset
90 else
3339c9bdfe6a Activate FSAL property in dorpri timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20572
diff changeset
91 args = {};
20568
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
92 endif
20575
3339c9bdfe6a Activate FSAL property in dorpri timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20572
diff changeset
93
20572
72cd24aa5f7a Clean up and vetorize Dormant&Prince RK timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20570
diff changeset
94 k(:,2) = feval (f, s(2), x + k(:,1) * aa(2, 1).', args{:});
72cd24aa5f7a Clean up and vetorize Dormant&Prince RK timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20570
diff changeset
95 k(:,3) = feval (f, s(3), x + k(:,1:2) * aa(3, 1:2).', args{:});
72cd24aa5f7a Clean up and vetorize Dormant&Prince RK timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20570
diff changeset
96 k(:,4) = feval (f, s(4), x + k(:,1:3) * aa(4, 1:3).', args{:});
72cd24aa5f7a Clean up and vetorize Dormant&Prince RK timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20570
diff changeset
97 k(:,5) = feval (f, s(5), x + k(:,1:4) * aa(5, 1:4).', args{:});
72cd24aa5f7a Clean up and vetorize Dormant&Prince RK timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20570
diff changeset
98 k(:,6) = feval (f, s(6), x + k(:,1:5) * aa(6, 1:5).', args{:});
20568
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
99
20584
eb9e2d187ed2 maint: Use Octave coding conventions in scripts/ode/private dir.
Rik <rik@octave.org>
parents: 20580
diff changeset
100 ## compute new time and new values for the unknowns
20575
3339c9bdfe6a Activate FSAL property in dorpri timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20572
diff changeset
101 t_out = t + dt;
20584
eb9e2d187ed2 maint: Use Octave coding conventions in scripts/ode/private dir.
Rik <rik@octave.org>
parents: 20580
diff changeset
102 x_out = x + k(:,1:6) * cc(:); # 5th order approximation
20568
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
103
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
104 ## if the estimation of the error is required
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
105 if (nargout >= 3)
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
106 ## new solution to be compared with the previous one
20575
3339c9bdfe6a Activate FSAL property in dorpri timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20572
diff changeset
107 k(:,7) = feval (f, t + dt, x_out, args{:});
20572
72cd24aa5f7a Clean up and vetorize Dormant&Prince RK timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20570
diff changeset
108 cc_prime = dt * c_prime;
20584
eb9e2d187ed2 maint: Use Octave coding conventions in scripts/ode/private dir.
Rik <rik@octave.org>
parents: 20580
diff changeset
109 x_est = x + k * cc_prime(:);
20568
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
110 endif
20572
72cd24aa5f7a Clean up and vetorize Dormant&Prince RK timestepper
Carlo de Falco <carlo.defalco@polimi.it>
parents: 20570
diff changeset
111
20568
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
112 endfunction
fcb792acab9b Moving ode45, odeset, odeget, and levenshtein from odepkg to core.
jcorno <jacopo.corno@gmail.com>
parents:
diff changeset
113