%uloha 128

f=@(x) x.^2+2./x
format long

[xm,ym]=MinimumBrutal(f,.1,6,1000)
fplot(f,[.1,6])
f(1),  min=feval(f,1)     %je to presne minimum
[xm1,ym1]=fminbnd(f,.1,6)
%[xm1,ym1]=fminbnd(f,.1,6,optimset('TolX',1e-12))