0% found this document useful (0 votes)
26 views2 pages

AMS 147 Computational Methods and Applications Exercise #1: B Tol

The document summarizes exercises from a computational methods class. It contains answers to questions about: 1) Expressing the number of iterations of the bisection method to reach a tolerance in terms of the interval bounds and tolerance. 2) Whether the bisection method is guaranteed to converge. 3) Whether specific values are fixed points of the sine function. 4) Whether an iterative function is a contraction mapping, and if the iterations will converge for any starting point. 5) Whether Newton's method satisfies the consistency condition.

Uploaded by

W
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views2 pages

AMS 147 Computational Methods and Applications Exercise #1: B Tol

The document summarizes exercises from a computational methods class. It contains answers to questions about: 1) Expressing the number of iterations of the bisection method to reach a tolerance in terms of the interval bounds and tolerance. 2) Whether the bisection method is guaranteed to converge. 3) Whether specific values are fixed points of the sine function. 4) Whether an iterative function is a contraction mapping, and if the iterations will converge for any starting point. 5) Whether Newton's method satisfies the consistency condition.

Uploaded by

W
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

AMS 147 Computational Methods and Applications

Exercise #1

1. Consider the bisection method for solving (x) = 0.


Suppose we start the iteration with interval [a, b]. Let N be the number of iterations needed to
reach the error tolerance tol. Express N in terms of a, b and tol.
Answer:

 b  a
N  log 2 
 tol 

2. Is the bisection method guaranteed to converge?


Answer:
Yes. Each iteration reduces the size of interval by a factor of 2.

3. Consider the function g( x ) = sin( x ) .


Is x* =


a fixed point of g(x)? And why?
2

Answer:

x* =




is NOT a fixed point of g(x) because g   = 1  .
 2
2
2

Is x* = 0 a fixed point of g(x)? And why?


Answer:

x* = 0 is a fixed point of g(x) because g ( 0 ) = 0 .

4. Consider the iteration xn +1 =

cos ( xn ) + 1
2

-1-

AMS 147 Computational Methods and Applications


Is g( x ) =

cos( x ) + 1
a contraction mapping? And why?
2

Does the iteration converge for arbitrary starting point x0? And why?
Answer:

g( x ) =

 sin ( x ) 1
cos( x ) + 1
is a contraction mapping because g ( x ) =
 < 1 for all x.
2
2
2

The iteration converges for arbitrary starting point x0 because g(x) is a contraction mapping.

5. Does Newtons method satisfy the consistency condition?


Answer:
Yes.

Newtons method satisfies the consistency condition.

-2-

You might also like