Math 1070 Matlab Assignment 5
To access the files needed for this assignment, in the class web page
http://www.pitt.edu/~trenchea/Math1070_Fall_Semester_2016.html
click on
A collection of matlab codes accompanying the text
and then on Chapter3
Copy the files bisect.m, newton.m, and secant.m
into your working directory.
Problem 1: Section 3.1 #7
Use the program in bisect.m for this problem. Follow all instructions
in the text. Submit the output of the code in all cases and a
discussion of the results. In addition, estimate the number of
iterations needed for convergence using the formula given in class and
compare to the actual number of iterations.
Problem 2: Section 3.2 #6
Use the program in newton.m for this problem. Follow all instructions
in the text. Submit the output of the code in all cases and a
discussion of the results.
BONUS: Problem 3
Solve Problem 2 using the secant method. Use the program in secant.m
for this problem. Submit the output of the code in all cases and a
discussion of the results. Compare the behavior of the newton and secant
methods and explain the differences.