scipy/scipy — pull request #125 by rgommers (2012-01-04 20:06:10+00:00)
Title: ENH: integrate: add 'initial' kw to cumtrapz, which makes len(out) == le...

...n(in).

Default is initial=None, to be backwards compatible
(meaning len(out) == len(in - 1) along axis of integration.

Also add tests and a decent docstring.