[Scipy-tickets] [SciPy] #1573: Proposed n-space integrator for quadpack.py

SciPy Trac scipy-tickets@scipy....
Wed Dec 7 19:45:02 CST 2011


#1573: Proposed n-space integrator for quadpack.py
-------------------------------------------------------+--------------------
 Reporter:  trobinso                                   |       Owner:  somebody
     Type:  enhancement                                |      Status:  new     
 Priority:  low                                        |   Milestone:  0.11.0  
Component:  scipy.integrate                            |     Version:  devel   
 Keywords:  multiple integration, quadpack, integrate  |  
-------------------------------------------------------+--------------------

Comment(by trobinso):

 Of course, the example won't work. Here's a quick modification, since this
 is a speculative enhancement:


 {{{
 def _infuncn(x,func,a,b,count,epsabs,epsrel,more_args):
     myargs = (x,) + more_args
     if count == 1:
         return quad(func,a,b,args=myargs,epsabs=epsabs,epsrel=epsrel)[0]
     else:
         return
 quad(_infuncn,a,b,(func,a,b,count-1,epsabs,epsrel,args),epsabs=epsabs,epsrel=epsrel)
 }}}

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1573#comment:1>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list