%uloha 134

f=@(x) x.^2+8./x;
fplot(f,[.5 2.5])
grid on
%vypada to na 1.59 zhruba z grafu

%[x1 x2]=min_zlaty_rez(f,.5,2.5, .01)
[x1 x2]=min_zlaty_rez(f,.5,2.5, .001)
f(x1)
f(x2)
f(1.59)

x=fminbnd(f,.5,2.5) %kontrola knihovni funkci