Docsity

4 Problems on Applied Numerical Methods - Practice Exam | MATH 151A, Exams of Mathematics

Toggle sidebar
bg1
UCLA MATH 151A/2, Friday February 9, 2001
NAME STUDENT ID #
This is a closed-book and closed-note examination. No calculators are allowed. Please
show all your work. Partial credit will be given to partial answers. There are 4
problems of total 20 points.
PROBLEM 1 2 3 4 TOTAL
SCORE
I. Let f(x) = √πx −cos (πx).
(a) Prove that the equation f(x) = 0 has at least a solution pin the interval [0,1].
(b) By the Bisection method, find pn,n≤2 on [0,1]. Use the table
x0 0.125 0.250 0.375 0.500 0.625 0.750 0.875 1
f(x) -1 -0.297 0.179 0.702 1.253 1.783 2.242 2.581 2.772
and write your answers in the next table.
n anbnpnf(pn)
0 0 1
1
2
(c) How many iterations are necessary to solve √πx −cos (πx) = 0 with accuracy 10−5on [0,1]
?
pf3
pf4

Partial preview of the text

Download 4 Problems on Applied Numerical Methods - Practice Exam | MATH 151A and more Exams Mathematics in PDF only on Docsity!

UCLA MATH 151A/2, Friday February 9, 2001

NAME STUDENT ID

This is a closed-book and closed-note examination. No calculators are allowed. Please show all your work. Partial credit will be given to partial answers. There are 4 problems of total 20 points.

PROBLEM 1 2 3 4 TOTAL SCORE

I. Let f (x) =

πx − cos (πx). (a) Prove that the equation f (x) = 0 has at least a solution p in the interval [0, 1]. (b) By the Bisection method, find pn, n ≤ 2 on [0, 1]. Use the table

x 0 0.125 0.250 0.375 0.500 0.625 0.750 0.875 1 f (x) -1 -0.297 0.179 0.702 1.253 1.783 2.242 2.581 2.

and write your answers in the next table.

n an bn pn f (pn) 0 0 1 1 2

(c) How many iterations are necessary to solve

πx − cos (πx) = 0 with accuracy 10−^5 on [0, 1] ?

II.

(a) Use the Theorem from the course to prove that g(x) = π + 0.5 sin x 2 has a unique fixed point on [0, 2 π]. (b) For p 0 = π, compute p 1. (c) How many iterations are necessary to achieve the accuracy 10−^2?

IV. Let f (x) = cos x, x 0 = 0, x 1 = 0.6 and x 2 = 0.9. (a) Construct an interpolation polynomial of degree at most two to approximate f. Use cos (0.6) = 0.8 and cos (0.9) = 0.6. (b) Use the Theorem of the course to find an error bound for the approximation.