help-octave
[Top][All Lists]
Advanced

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

Re: User supplied jacobian makes ode23s very slow


From: Dmitri A. Sergatskov
Subject: Re: User supplied jacobian makes ode23s very slow
Date: Fri, 6 Nov 2015 11:29:24 -0600

On Fri, Nov 6, 2015 at 6:01 AM, Alexander Bessman <address@hidden> wrote:

​...........​
 
    % Jacobian
    e = ones (N, 1);
​..........

this is more of a style issue, but be aware that "e" in octave is a built-in
octave:1> e
ans =  2.7183

​which you have just overwritten ...
It could potentially result in some hard to debug problem.
The same goes for "i" "j" (or "pi").
I suggest to use "ee" or "ii" or "jj" var names instead.
​Dmitri.
--





reply via email to

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