The goal of this laboratory is to implement the Bisection and Newton's method algorithms for finding the root of a function. In addition, the convergence rate of each algorithm will be compared.
Instructions: Write a brief summary desribing both algorithms and why they work. Encode each algorithm in the programming language of your choice. Your programs should be well documented. The function whose root you are finding should be programmed in as a procedure or subroutine.
The bisection program should be able to receive as inputs (either from the terminal or a file) the left and right end-points of an interval that contains the root along with a tolerance value. Your routine should output an approximate value of the root to within the stated tolerance along with the number of iterations that the bisection algorithm executed.
Your Newton's method program should receive as inputs (again, either from the terminal or a file) the initial approximate root (the x_0) along with a tolerance value. Your program should return an approximate root to within the stated tolerance along with the number of iterations that Newton's algorithm executed.
In addition, do the following.
Click here for a C-code solution.
Monday - Thursday: 7pm - 12 midnight
Friday: 9 am - 5 pm
Saturday 12 noon - 6 pm
Sunday 12 noon - 12 midnight