f=@(x)(tan(x)).^2.*exp(x);
vastus1=quadv(f,-2,2) %vastus Simpsoni valemiga

x=-2:0.0001:2;
y=f(x);
vastus2=trapz(x,y) %vastus trapetsvalemiga
