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

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

[Octave-bug-tracker] [bug #42037] Missing function integral


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #42037] Missing function integral
Date: Tue, 21 Mar 2017 16:07:01 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0

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

Here's a first attempt at a wrapper function for integral. Function and patch
attached.

For compatibility integral needs to handle only 4 options: RelTol, AbsTol,
Waypoints, and Arrayvalued.  

If option "ArrayValued" is true, it calls quadv. 

Otherwise it will call quadgk. one issue with this approach is that you cannot
call ArrayValued along with Waypoints or RelTol. (quadv only takes abstol). 
at the moment I have it continue with a warning. these could be changed to
errors if you think that's a better handling method.

Also, it's possible the combination could be handled by calling arrayfun and
quadgk for those cases, but I wasn't able to come up with a form for arrayfun
that actually worked. 

In any case, this passes all tests and should provide some bit of improved
compatibility. haven't looked at whether adding similar wrappers for integral2
and integral3 will be as straightforward.

(file #40052, file #40053)
    _______________________________________________________

Additional Item Attachment:

File name: add_integral.diff              Size:10 KB
File name: integral.m                     Size:8 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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