x=6.35:0.1:7.05;
y=[316.29 330.36 344.85 359.76 375.09 390.85 407.06 423.70];
for i=1:8
    x(i)=x(i)-0.01*alpha;
    y(i)=y(i)+0.1*beeta;
end
%integreerimine trapetsvalemiga
trapets=trapz(x,y)
%funktsiooni defineerimine
f=@(m)interp1(x,y,m,'spline');
simpson=quadv(f,x(1),x(8))