clear
x=0:0.01:0.06; %vahemaa meetrites
F=[0 5.1 10.2 16.1 25.4 40.2 61.9];

alfa=5; %eesnime tähtede arv
gamma=2; %üliõpilaskoodi viimane number
%for i=2:7
 %   F(i)=F(i)+(-1)^(i+gamma)*0.1*alfa;
%end
too1=trapz(x,F)
%Simpsoni valemiga
f=@(z)interp1(x,F,z,'spline');
too2=integral(f,0,0.06)