CMPS 251 Final, Spring 2002

American University of Beirut · Numerical Computing · 2 pages

All CMPS 251 files
CMPS 251 Final, Spring 2002, page 1

Stuck on a question? A tutor can walk you through it.

CMPS 251 Final, Spring 2002, page 2

More CMPS 251 files

Show the text of this final exam
AMERICAN UNIVERSITY OF BEIRUT Mathematics 251, Final Exam June 22, 2002 Time = 1 Hour and 50 Minutes You are allowed to use one standard size formula sheet and a calculator. Please, print your name and your ID number on both the question sheet and the booklet. Part I: Multiple choice. Please, choose one and only one answer. Hach question carries a weight of 10 points. 1. Let f(z) = e*. Find a third-degree Taylor polynomial for f(r) ex- panded about xp = 1 approximate e°°? using this Taylor polyno- mial. What is the expected degree of accuracy? (a) 1075/24 (b) e/24 (c) 10~*e/24 (d) 10~*e (e) none of the above. 2. One would like to approximate a root of the equation 2° + 4x? —10 = 0 in the interval [1,2] using the bisection method. What is the minimum number of iterations that are needed to achieve and accuracy of 107° (rounded)? (a) 17 b) 34 (c) 100 (d) 120 (e) none of the above. . You are given the following table of data: x ljol 1 of o1 | 2 f(x) || 0 [0.10 | 0.75 Let A be the estimate of f(1.5) through polynomial interpolation. Later, the value of the function at x=3 became available and was given by f(3)=0.95. Let B be the new estimate of f(1.5) using the new updated data. What is the value of A-B? (a) 1/16 (b) 3/16 (c) 1/4 (d) 2 (e) none of the above. . You are to approximate J = fo sin(rx)dx by two methods. Method 1 uses the composite trapezoid rule with two equally divided subintervals, callit J, with error £,. Method 2 uses the composite trapezoid rule with three equally divided subintervals, call it Z2 with error Ep. Determine Ey, — Ey. (a) — 2 (b) $ (c) $ (4) 4 (e) none of the above. 1 5. Approximate [| (1+2?)7!dz hy using the Romberg method. What is the value of [2(2.1) — R(1,1)| (round your answer to the third decimal place)? (a) 0.000 (b) 0.001 (c) 0.002 (cl) 0.003 (e) none of the above 5. S(r) is a natural cnbic spline for the function f(a) = sin(wx/2) + cos(7v/2) at knots cg = 0, 2) = 1, and 7. = 2. What is the coefficient of rin Sr) when O< a <1” (a) -1/3 (b) -1/2 (c) 0 (a) 1/2 (e) none of the above. Part II: (written questions) Please, show all work! . Consicler the following linear system of equations: wp: 324 = 4_ Qn 4 + 224 1 Bey, - ow : 224 -3 ny Qn : ty = 4 (a) Write the above system of equations in itis matrix form, that is, AN = b. (4 pts) (b) Find a Lower triangular matrix L and an upper triangular matrix U such that A=LU. (10 pts) (c) Find the solution-of the above system. (5 pts) 8. Consider the following initial value problem: = Qt +pe’ wQ1) = 0 (a) Show that .(t) = #(e’+4), where & is a constant to be determined. is an exact solution for the above initial value problem. (5 pts) (hb) Approximate x(1.01) by using one step Euler’s method and then by using one step Runge-Kutta method of order 2. (10 pts) (©) What method in part (b) gives the better approximation for ¢(1.01)? (5 pts)