clear
%defineerime f
f=@(x)(tan(x)).^2.*exp(x);
format long
integraal1=integral(f,-1,1)

%sama ka trapetvalemiga
x=-1:1e-4:1;
y=f(x);
integraal2=trapz(x,y)
format short