[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49950] ode scripts: error on NormControl
From: |
Chiara Segala |
Subject: |
[Octave-bug-tracker] [bug #49950] ode scripts: error on NormControl |
Date: |
Thu, 29 Dec 2016 16:05:01 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0 |
URL:
<http://savannah.gnu.org/bugs/?49950>
Summary: ode scripts: error on NormControl
Project: GNU Octave
Submitted by: chiarasegala
Submitted on: Thu 29 Dec 2016 04:05:00 PM GMT
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Documentation
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.2.0
Operating System: GNU/Linux
_______________________________________________________
Details:
The help of odeset.m says
"NormControl
Control error relative to the 2-norm of the solution, rather than its
absolute value."
But then does the opposite.
In integrate_adaptive.m:
dt = starting_stepsize (order, func, t, x,
options.AbsTol, options.RelTol,
strcmp (options.NormControl, "on"),
options.funarguments);
in AbsRel_norm.m:
if (normcontrol)
retval = max (abs (x - y) ./ sc);
else
retval = sqrt ((1 / n) * sumsq ((x - y) ./ sc));
endif
It needs to flip the previous "if".
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49950>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #49950] ode scripts: error on NormControl,
Chiara Segala <=