% Numericno izracuna odvode za f(x)=1/(1+x)
% v tockah 0.2,0.3.0.4  pri razlicnih vrednostih
% h in napake primerja z oceno

t=-0.4:-0.01:-7;
clear('y1','y2','y3','ocena')
n=length(t);
for i=1:n, y1(i)=napaka(0.2,10^t(i)); end
for i=1:n, y2(i)=napaka(0.3,10^t(i)); end
for i=1:n, y3(i)=napaka(0.4,10^t(i)); end
for i=1:n, h=10^t(i); ocena(i)=4*h^4+(7.5e-7)/h; end

plot(t,log10(y1),'*g',t,log10(y2),'*r',t,log10(y3),'*b',t,log10(ocena),'-')


