[Scipy-tickets] [SciPy] #1574: cumtrapz does not behave as expected

SciPy Trac scipy-tickets@scipy....
Thu Dec 15 15:58:34 CST 2011

#1574: cumtrapz does not behave as expected
 Reporter:  tillahoffmann    |       Owner:  somebody   
     Type:  review           |      Status:  new        
 Priority:  normal           |   Milestone:  Unscheduled
Component:  scipy.integrate  |     Version:  0.9.0      
 Keywords:  cumtrapz length  |  
 The function cumtrapz does not behave as one would expect from the
 definition of an integral because the length of the output vector is the
 length of the input vector - 1.

 However, if a function is defined on a discrete set of N points then so is
 the integral.

 A 0 should be prepended to the resulting vector.

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

More information about the Scipy-tickets mailing list