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