function prikladInterpolace()

f = @(x) (sin(x)./exp(x));
% f = @(x) (x.^3-x.^2+x-1);
% f = @(x) (exp(x)./(x.^2+1));
a = 0; b = 1;

f = @(x) (1./(1+x.^2));
a = -5; b = 5;

x = a:0.01:b; plot(x,f(x),'k')
for n=0:50
    n
%     hold on;
%     plot(x,interpolacePolynomem(f,a,b,n,x),'b');
    plot(x,f(x),'k',x,CebysevovaInterpolace(f,a,b,n,x),'r');
    pause;
end