Remember to indent the bodies of your IF-THEN and looping structures.
For the problems below that require you to implement the bisection method you should use a value of 10-10 for each of the tolerances. Note, in order to assign a value of 10-10 in MATLAB, you should do
tol = 1.0e-10If you enter
tol = 10.0e-10then your tolerance will be 10-9. Also, you should allow a maximum of 50 iterations.
For each case, you should print out the value of the root, the value of the function at the root, the number of iterations, the status variable and create plots of the convergence histories. How do the iteration counts for Newton's Method compare to the bisection method? For Part c), does Newton's method converge to the same root as the bisection method?