% This is a MATLAB script, which calls the MATLAB function bisect.m % to approximate a zero of f(x) = e^x - 4 x^2 in [0,1]. % Define the function with the command "inline" f = inline('exp(x) - 4*x^2'); % Use bisection to approximate a zero of f(x) in [0,1] to within 1e-5 p = bisect(f, 0, 1, 1e-5, 100) disp('enter the command "format long", and then "p" to see more digits');