function i = integral( y, x )
%INTEGRAL Summary of this function goes here
%  Detailed explanation goes here

dlzka=length(x);
i=sum(y)*(x(dlzka)-x(1))/dlzka;