Docsity

Introduction to Numerical Analysis - Assignment 1 - Fall 2002 | MTH 351, Assignments of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
Mth 351 Assignment 1 Fall 2002 Due: Oct 16, 2002
Bent Petersen 351f2002_asg01.tex
Recall the Newton-Raphson iteration for approximating a root of the function f
xn+1 =xn−
f(xn)
f0(xn).
Let a > 0. If we apply the Newton-Raphson method to the function f(x) = x2−awe obtain, for reasonable x0, a
sequence converging to √a,
xn+1 =x2
n+a
2xn
.
In particular if we take a= 2 and x0= 1 we obtain the sequence
1,3
2,17
12,577
408,665857
470832,886731088897
627013566048,· · ·
which converges rapidly to √2.
Problem 1. Compute the error in each of terms in the sequence above. Does the convergence appear to be quadratic,
or not? Explain your conclusion?
There are numerous modifications of Newton’s method, for example, we have the Newton-Halley iteration for approxi-
mating a root of the function f
xn+1 =xn−
f(xn)
f0(xn)1−
f(xn)f00(xn)
2 (f0(xn))2−1
.
Problem 2. Apply the Newton-Halley method to the function f(x) = x2−ato obtain a sequence approximating
√a(be sure to simplify your result).
Problem 3. Use the result of the previous problem to obtain a sequence converging to √2. Compute the errors. Is
the convergence quadratic or faster? What does the rate of convergence appear to be? Explain.
You may use a calculator, Matlab, Maple, a spreadsheet, or just about anything else. You may have some roundoff
problems in computing some of the errors above.
If you elect to use a spreadsheet you may find useful the (ancient) book
William J. Orvis, 1-2-3 for Scientists and Engineers, Sybex, San Francisco, 1987.
Rules. You may talk to anyone and get help wherever you can for any assignment, but at some point you must write up
your work by yourself.
You should answer in complete reasonably correct English sentences. You should explain briefly how your results
where obtained. Make an effort to communicate rather than just turning in numbers.
If you write some code and ask me to help to debug your code, you will get a well-deserved intense frown. Life’s too
short to debug my own code, let alone others’ code.

Partial preview of the text

Download Introduction to Numerical Analysis - Assignment 1 - Fall 2002 | MTH 351 and more Assignments Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

Mth 351 Assignment 1 Fall 2002 Due: Oct 16, 2002

Bent Petersen 351f2002_asg01.tex

Recall the Newton-Raphson iteration for approximating a root of the function f

xn+1 = xn −

f (xn) f ′(xn)

Let a > 0. If we apply the Newton-Raphson method to the function f (x) = x^2 − a we obtain, for reasonable x 0 , a sequence converging to

a, xn+1 = x^2 n + a 2 xn

In particular if we take a = 2 and x 0 = 1 we obtain the sequence

which converges rapidly to

Problem 1. Compute the error in each of terms in the sequence above. Does the convergence appear to be quadratic,

or not? Explain your conclusion?

There are numerous modifications of Newton’s method, for example, we have the Newton-Halley iteration for approxi- mating a root of the function f

xn+1 = xn −

f (xn) f ′(xn)

f (xn)f ′′(xn) 2 (f ′(xn))^2

Problem 2. √ Apply the Newton-Halley method to the function f (x) = x^2 − a to obtain a sequence approximating

a (be sure to simplify your result).

Problem 3. Use the result of the previous problem to obtain a sequence converging to

  1. Compute the errors. Is the convergence quadratic or faster? What does the rate of convergence appear to be? Explain.

You may use a calculator, Matlab, Maple, a spreadsheet, or just about anything else. You may have some roundoff problems in computing some of the errors above.

If you elect to use a spreadsheet you may find useful the (ancient) book

William J. Orvis, 1-2-3 for Scientists and Engineers , Sybex, San Francisco, 1987.

Rules. You may talk to anyone and get help wherever you can for any assignment, but at some point you must write up your work by yourself.

You should answer in complete reasonably correct English sentences. You should explain briefly how your results where obtained. Make an effort to communicate rather than just turning in numbers.

If you write some code and ask me to help to debug your code, you will get a well-deserved intense frown. Life’s too short to debug my own code, let alone others’ code.