octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #47654] ode23/ode45 do not allow zero value fo


From: Carlo de Falco
Subject: [Octave-bug-tracker] [bug #47654] ode23/ode45 do not allow zero value for tolerance
Date: Wed, 23 Nov 2016 10:19:36 +0000 (UTC)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:50.0) Gecko/20100101 Firefox/50.0

Update of bug #47654 (project octave):

                  Status:               Need Info => Fixed                  
             Open/Closed:                    Open => Closed                 
         Discussion Lock:                     Any => Locked                 

    _______________________________________________________

Follow-up Comment #6:

Octave 4.2:


>> opt1 = odeset ('AbsTol', 0);
>> opt2 = odeset ('RelTol', 0);
>> opt3 = odeset ('AbsTol', 0, 'RelTol', 0);
>> ode23 (f, 1, [0 1], opt1)
error: ode23: TRANGE must contain at least 2 elements
error: called from
    ode23 at line 126 column 5
>> ode23 (f, [0 1], 1, opt1)
error: ode23: AbsTol must be positive
error: called from
    validateattributes at line 406 column 7
    odemergeopts at line 27 column 9
    ode23 at line 167 column 11
>> ode23 (f, [0 1], 1, opt2)
error: ode23: RelTol must be positive
error: called from
    validateattributes at line 406 column 7
    odemergeopts at line 27 column 9
    ode23 at line 167 column 11
>> ode23 (f, [0 1], 1, opt3)
error: ode23: AbsTol must be positive
error: called from
    validateattributes at line 406 column 7
    odemergeopts at line 27 column 9
    ode23 at line 167 column 11
>> ode45 (f, [0 1], 1, opt3)
error: ode45: AbsTol must be positive
error: called from
    validateattributes at line 406 column 7
    odemergeopts at line 27 column 9
    ode45 at line 161 column 11
>> ode45 (f, [0 1], 1, opt2)
error: ode45: RelTol must be positive
error: called from
    validateattributes at line 406 column 7
    odemergeopts at line 27 column 9
    ode45 at line 161 column 11
>> ode45 (f, [0 1], 1, opt1)
error: ode45: AbsTol must be positive
error: called from
    validateattributes at line 406 column 7
    odemergeopts at line 27 column 9
    ode45 at line 161 column 11
>> 



Matlab 2016a


>> opt1 = odeset ('AbsTol', 0);
opt2 = odeset ('RelTol', 0);
opt3 = odeset ('AbsTol', 0, 'RelTol', 0);
>> ode23 (f, [0 1], 1, opt1)
Error using odearguments (line 131)
AbsTol must be positive.

Error in ode23 (line 114)
    odearguments(FcnHandlesUsed, solver_name, ode, tspan, y0, options,
varargin);
 
>> ode23 (f, [0 1], 1, opt2)
Error using odearguments (line 123)
RelTol must be a positive scalar.

Error in ode23 (line 114)
    odearguments(FcnHandlesUsed, solver_name, ode, tspan, y0, options,
varargin);
 
>> ode23 (f, [0 1], 1, opt3)
Error using odearguments (line 123)
RelTol must be a positive scalar.

Error in ode23 (line 114)
    odearguments(FcnHandlesUsed, solver_name, ode, tspan, y0, options,
varargin);
 
>> ode45 (f, [0 1], 1, opt3)
Error using odearguments (line 123)
RelTol must be a positive scalar.

Error in ode45 (line 115)
    odearguments(FcnHandlesUsed, solver_name, ode, tspan, y0, options,
varargin);
 
>> ode45 (f, [0 1], 1, opt2)
Error using odearguments (line 123)
RelTol must be a positive scalar.

Error in ode45 (line 115)
    odearguments(FcnHandlesUsed, solver_name, ode, tspan, y0, options,
varargin);
 
>> ode45 (f, [0 1], 1, opt3)
Error using odearguments (line 123)
RelTol must be a positive scalar.

Error in ode45 (line 115)
    odearguments(FcnHandlesUsed, solver_name, ode, tspan, y0, options,
varargin);
 
>> 



The behaviour looks compatible to me, I think we can close this item.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47654>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]