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

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

[Octave-bug-tracker] [bug #52074] Missing integration functions integral


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #52074] Missing integration functions integral2, integral3
Date: Thu, 21 Sep 2017 22:44:51 -0400 (EDT)
User-agent: Mozilla/5.0 (Linux; Android 5.0.1; SAMSUNG-SGH-I337 Build/LRX22C) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.116 Mobile Safari/537.36

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

Well, MATLAB has no quadcc implementation, so there's no compatibility concern
in changing it, just a backwards compatibility concern if we break anything
else that used it. Looking at a few other implementations most seem to mention
a relative tolerance value, so maybe that was in the original algorithm. 

Don't have it in front if me right now but does dblquad do a scalar check on
tol? If not, then what you say could work. Abs and rel tols get passed through
dblquad as a 2 elem vector down to quadcc, and no need for quadgk calls at
all.

It may be worth considering having quadcc deviate from the others and still
have reltol first. That would maintain backward compatibility, and I guess the
source code intent. Also, I looked at matlabs dblquad doc and it just says
tolerance, not rel or abs. So, dblquad behavior would also just be a backward
compatibility preference. Don't know how concerning those are.

I did code up a version that works as per comment #5, but didn't work up a
patch yet. Will wait and see what you find with quadcc.



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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