Docsity

Math 151A HW #1: Stopping Criteria & Approximating Square Root of Two, Assignments of Mathematics

Toggle sidebar
bg1
Math 151A Homework #1 โ€“ due Wednesday 10/11, in class
Show all your work!
1. On the importance of stopping criteria. (section 2.1, problem 16)
Let f(x) = (xโˆ’1)10 (with a root at p= 1), and consider the sequence of approximations to
the root pgiven by pn= 1 + (1/n). Show the the stopping criterion |f(pn)|<10โˆ’3is met
for nโ‰ฅ2, but |pโˆ’pn|<10โˆ’3requires that n > 1000.
2. On the importance of stopping criteria, II. (section2.1, problem 17)
Let pnbe the sequence defined by pn=Pn
k=1(1/k). Show that pndiverges even though
limnโ†’โˆž(pnโˆ’pnโˆ’1) = 0.
3. The sqare root of two.
Use the bisection method to approximate the value of โˆš2, given that it lies in the interval
[1,2]. Do this in two parts:
a. Calculate the maximum number of iterations required to estimate โˆš2 to within 10โˆ’4,
starting with the interval [1,2].
b. Use the bisection method to compute the value of โˆš2 to within 10โˆ’4. Print out and
submit (along with your code) the intermediate approximations at each iteration.
[Hint: Consider f(x) = x2โˆ’2]

Partial preview of the text

Download Math 151A HW #1: Stopping Criteria & Approximating Square Root of Two and more Assignments Mathematics in PDF only on Docsity!

Math 151A Homework #1 โ€“ due Wednesday 10/11, in class

Show all your work!

  1. On the importance of stopping criteria. (section 2.1, problem 16) Let f (x) = (x โˆ’ 1)^10 (with a root at p = 1), and consider the sequence of approximations to the root p given by pn = 1 + (1/n). Show the the stopping criterion |f (pn)| < 10 โˆ’^3 is met for n โ‰ฅ 2, but |p โˆ’ pn| < 10 โˆ’^3 requires that n > 1000.
  2. On the importance of stopping criteria, II. (section2.1, problem 17) Let pn be the sequence defined by pn =

โˆ‘n k=1(1/k).^ Show that^ pn^ diverges even though limnโ†’โˆž(pn โˆ’ pnโˆ’ 1 ) = 0.

  1. The sqare root of two. Use the bisection method to approximate the value of

2, given that it lies in the interval [1, 2]. Do this in two parts:

a. Calculate the maximum number of iterations required to estimate

2 to within 10โˆ’^4 , starting with the interval [1, 2]. b. Use the bisection method to compute the value of

2 to within 10โˆ’^4. Print out and submit (along with your code) the intermediate approximations at each iteration.

[Hint: Consider f (x) = x^2 โˆ’ 2]