title: IDL's INT_TABULATE - SciPy equivalent?
body: <p>I am working on moving some code from IDL into python.  One IDL call is to INT_TABULATE which performs integration on a fixed range.</p>
  
  <blockquote>
    <p>The INT_TABULATED function integrates a tabulated set of data { xi , fi } on the closed interval [MIN(x) , MAX(x)], using a five-point Newton-Cotes integration formula.</p>
  </blockquote>
  
  <p><code>Result = INT_TABULATED( X, F [, /DOUBLE] [, /SORT] )</code></p>
  
  <p>Where result is the area under the curve.</p>
  
  <p><a href="http://www.physics.nyu.edu/grierlab/idl_html_help/I16.html#wp750296" rel="nofollow">IDL DOCS</a></p>
  
  <p>My question is, does Numpy/SciPy offer a similar form of integration?  I see that <code>[scipy.integrate.newton_cotes]</code> exists, but it appears to return "<a href="http://docs.continuum.io/scipy/integrate.html" rel="nofollow">weights and error coefficient for Newton-Cotes integration</a> instead of area".</p>