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

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

[Octave-bug-tracker] [bug #62412] integral gives consistent inaccurate r


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #62412] integral gives consistent inaccurate result for improper integral to inf
Date: Wed, 4 May 2022 13:49:59 -0400 (EDT)

Follow-up Comment #7, bug #62412 (project octave):

@jwe, Re: comment #5:  of course. poor wording.  

https://www.mathworks.com/help/matlab/ref/integral.html

shows only 

Syntax
q = integral(fun,xmin,xmax)
q = integral(fun,xmin,xmax,Name,Value)


so, since matlab's integral only has one return variable, us adding optional
additional sholudn't break compatability (unless they change their interface
of course.)

@rik, that sounds like a good plan. so (1) mod quadcc to warn as you said. (2)
maybe add warning output option to integral that should get something to pass
along from whichever integrator it calls?

is there thought to be any need establish a path by which integral calls quad?
would have to make quite a few changes to the desicison tree for that i think,
and the recursion issue remains.  integral doesn't have a 'choose your
integrator' option as a name/value parameter set, but adding one would be one
way to enable quad without playing with selection logic, and it wouldn't break
compatability. (i think dblquad and triplequad do that).  At that point
though... I'd say just call the one you want directly.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62412>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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