[SciPy-User] cumtrapz

Nils Wagner nwagner@iam.uni-stuttgart...
Thu Nov 4 03:42:32 CDT 2010


Hi all,

cumtrapz can be used to compute the antiderivative.

x = linspace(0,2*pi,200)
y = 2*cos(2*x)
Y = cumtrapz(y,x)



len(y) = 200
len(Y) = 199

The length of the arrays y and Y differ by one. For what 
reason ?

Nils



More information about the SciPy-User mailing list