%uloha 135B

fB=@(x) (.5*x.^2-x+.5)./(x.^2+1);

fplot(fB,[0 2])
grid on

[x1,x2]=min_zlaty_rez(fB,0,2,0.000001)
[x1,x2]=min_zlaty_rez(fB,0,2,1e-12)
[x1,x2]=min_puleni(fB,0,2,1e-12)

x=fminbnd(fB,0,2)
x=fminbnd(fB,0,2,optimset('tolX',1e-12))