Docsity

Midterm Exam - Applied Numerical Methods | MATH 151A, Exams of Mathematics

Toggle sidebar
bg1
UCLA MATH 151A/3, Monday October 29, 2001
MIDTERM EXAM
NAME STUDENT ID #
This is a closed-book and closed-note examination. Please show all your work. Partial
credit will be given to partial answers. There are 4 problems of total 100 points.
PROBLEM 1 2 3 4 TOTAL
SCORE
1.
(a) Do three iterations (by hand) of the bisection method, applied to f(x) = x3
โˆ’2, using a= 0
and b= 2 (find p0,p1and p2).
(b) How many iterations does the theory predict it will take to achieve 10โˆ’5accuracy, to ap-
proximate the root of x3
โˆ’2 = 0 by the bisection method on the interval [0,2] ?
pf3
pf4

Partial preview of the text

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

UCLA MATH 151A/3, Monday October 29, 2001 MIDTERM EXAM

NAME STUDENT ID

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

PROBLEM 1 2 3 4 TOTAL SCORE

(a) Do three iterations (by hand) of the bisection method, applied to f (x) = x^3 โˆ’ 2, using a = 0 and b = 2 (find p 0 , p 1 and p 2 ). (b) How many iterations does the theory predict it will take to achieve 10โˆ’^5 accuracy, to ap- proximate the root of x^3 โˆ’ 2 = 0 by the bisection method on the interval [0, 2]?

(a) By a theorem from the course, show that the function g(x) = 1 + eโˆ’x^ has a unique fixed point on [1, 2] (given values: eโˆ’^1 = 0.3679, eโˆ’^2 = 0.1353). (b) For p 0 = 1, compute p 1 using the fixed-point iteration. (c) How many iterations does the theory predict it will take to achieve 10โˆ’^5 accuracy, to ap- proximate the fixed point, starting with p 0 = 1?

(a) Construct the Lagrange polynomial interpolating the points x 0 = 0 and x 1 = h, to approxi- mate the function f (x) = cos x, where h > 0 is a small parameter. (b) Write down the error formula as applied to the above interpolation. Find an upper bound for the error on the interval [0, h], function of the parameter h. (c) Construct the Lagrange polynomial interpolating the points x 0 = 0, x 1 = h, and x 2 = 2h to approximate the function f (x) = cos x.