I only need the results, not the code.
% bisection.m
% MATLAB code for the bisection algorithm.
clear; % Clear the MATLAB environment
a = input(’The left value of the interval [a,b]: ’);
b = input(’The right value of the interval [a,b]: ’);
M = input(’Maximum number of iterations: ’);
d = input(’The smallest interval size: ’);
ep = input(’The smallest absolute function value: ’);
u = fun1(a); v = fun1(b);
e = b – a;
disp([a,b,u,v]);
if sign(u) ~= sign(v)
for k = 1:M
e = e/2; c = a + e; w = fun1(c);
disp([k,c,w,e]);
if ( abs(e) < d ) | ( abs(w) < ep )
break;
end
if sign(w) ~= sign(u)
b = c; v =
PayPal Gateway not configured
PayPal Gateway not configured