clear
g=@(t)t.^2.*cos(t.^4);
vastus1=quadv(g,0,10) %Simpsoni valem
%vektorid
t=0:1e-1:10;
y=g(t);
vastus2=trapz(t,y) %trapetsvalem