You are on page 1of 1

function [xr, iter] = bisec(fun, xl,xu,es,imax)

fl = fun(xl)
fu = fun(xu)
iter=1
if fl�fu < 0 then
end
while iter < imax
xold = xr;
xr= (xl+xu)/2;
printf

You might also like