format shorte
a = 2;
b = 3.5;
iterace = 0;
epsilon = b-a;
while(epsilon > 1e-10)
   s = (a+b)/2;
   if (funkce(a)*funkce(s) <= 0)
       
       b = s;
   else
       a = s;
   end
   iterace = iterace +1;
   epsilon = b-a;
   reseni = (a+b)/2;
   [iterace reseni epsilon]
end

