From bug-request at octave dot org Sun Apr 16 12:26:46 2006 Subject: Re: Extra input variable in oregonator.m From: "Keith Goodman" To: "John W. Eaton" Cc: "bug at octave dot org" Date: Sun, 16 Apr 2006 10:25:05 -0700 On 4/16/06, John W. Eaton wrote: > On 16-Apr-2006, Keith Goodman wrote: > > | examples/oregonator.m takes two input variables (x and t) but only > | uses one (x). > | examples/oregonator.cc only uses one (x). > | > | Here's a patch to remove `t' in oregonator.m. > > This function is intended to be called from ODE solvers like lsode > which expect the RHS function to accept X and T. Removing the second > argument won't cause trouble as long as you don't also generate an > error if both X and T are supplied by the caller (as lsode will). That's confusing---especially for someone making their first oct file. ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------