[Scipy-tickets] [SciPy] #1574: cumtrapz does not behave as expected
SciPy Trac
scipy-tickets@scipy....
Wed Dec 28 21:57:45 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 |
-----------------------------+----------------------------------------------
Comment(by warren.weckesser):
An initial 0 sounds reasonable. To maintain backwards compatibility, a
keyword argument, say `initial`, could be added. If `initial=None`, the
function maintains the current behavior and returns N-1 points in the
given axis. Otherwise, the value of `initial` is the first value of the
result, and N points are returned in the given axis. The typical case
would be `initial=0`.
Ultimately, however, it would be nice if `initial=0` was the default
behavior, so I haven't convinced myself that this would be a good interim
solution.
--
Ticket URL: <http://projects.scipy.org/scipy/ticket/1574#comment:2>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.
More information about the Scipy-tickets
mailing list