% Tund 13, ülesanne 2
f=@(x) (tan(x)).^2.*exp(x);
fplot(f,[-1,1])
% Simpsoni valemiga
int1=integral(f,-1,1)
% trapetsvalem
x=[-1:0.0000001:1];
y=f(x);
int2=trapz(x,y)
