Assignment 2 - Due 9/22
Assignment 2 - Due 9/22
All written assignments are due in the class on the specified date. One summary report is re-
quired for each programming project. You may hand in a printed copy of your report in class
on the due day and email all of your source codes (with instruction on how to compile and run)
before 11:30PM of the same day. Or, you may email all of your source codes and the report in an
electronic format before 11:30PM on the due date.
Grading: Total is 100 points, with 40 for the programming assignment and 15 for each of the
regular problems.
|α − xn+1 | ≤ cn |α − xn |, n≥0
|α − xn |
lim =1
n→∞ |xn+1 − xn |
.
i.e., |α − xn | = |xn+1 − xn | is increasingly valid as n → ∞, if xn 6= α for any n.
xn (x2n + 3a)
xn+1 = , n≥0
3x2n + a
√
is a third-order method for computing a. Compute
√
a − xn+1
lim √
n→∞ ( a − xn )3
f (x) = 1 + cos x.
1
(a) What is the order of convergence of Newton’s method for α, if the initial guess x0 is
sufficiently close to α?
(b) To possibly accelerate convergence, we use a modified Newton’s method,
f (xn )
xn+1 = xn − C .
f 0 (xn )
Find the constant C for which this iteration converges fastest, and determine the order
of convergence.
5. Programming Assignment: Write a program to implement one of the three methods (bi-
section, Newton, secant) to compute all the roots in [0, 100] for equation 1 − x tan x = 0.
(Note that x tan x is a monotone function in each period of tan x.)