[SciPy-User] cumtrapz

Nils Wagner nwagner at iam.uni-stuttgart.de
Thu Nov 4 04:42:32 EDT 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