% matlab.pdf, p. 69
% bez vektorizace
tic
y=zeros(5000,1);
for i=1:5000; 
    y(i)=exp(-i) + sin(cos(i/100)/sqrt(i) + log(i)); 
end; 
toc
%%
% vektorova forma
tic
x=(1:5000)'; 
y=exp(-x) + sin(cos(x/100)./sqrt(x) + log(x));
toc

% tic; hilb1(5000); toc
