(Function value at -1.60894e+154 is Inf.)Ĭheck function or try again with a different starting value. In the last line, a finally gets bumped far enough left that f(a) has a positive sign and f(b) continues to have a negative sign. Each row in the table above, MATLAB bumps a, checks, then bumps b, checks. That means MATLAB has run the function three times - once at the original value, once at the new a, and once at the new b. Since they are both negative, b is bumped a little right and again f(a) and f(b) are checked. Then, a is bumped a little left and f(a) is compared to f(b).