%%Bisection Method solution illustration of for loop code %Dejen ketema marhc,2019 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %f = @(x)(x/2).^2-sin(x);% Example in you handout %f=@(x)x.^2-2*x+1; %f=@(x)x.^3-2*x.^2+4*x-3; %f=@(x)x.^3-2*x.^2-x+2; %f=@(x)x-2*exp(-x); f=@(x)x.^2-x-1; a = 1; b = 2; tol=0.001; p=bisection_2019_dej(f,a,b,tol);