




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Faculty of Arts and Sciences Computer Science Department
Closed Book, Two hours
xi yi 0.000 4. 0.125 3. 0.250 3. 0.375 3. 0.500 3. 0.625 2. 0.750 2. 0.875 2. 1.000 2.
(a) Write the polynomial of degree 3 p(x) that would best approxi- mate f (0.3). Find p(0.3).
(c) Using the Mid-point, trapezoidal and Simpson’s rules followed by Romberg integrations fill out the following table used to approxi- mate I =
∫ (^1) 0 f^ (x)dx
h Mh Th Sh R(1) h R(2) h h 0 × × × × h 0 2 × × h 0 4 h 0 8 ×^ ×^ ×^ × × × × ×
L = φ(h) + c 1 h^3 + c 2 h^5 + c 3 h^7 + ...,
where the coefficients {ci} are independent from h. What combina- tion of φ(h) and φ(h 2 ) would give a better approximation φ^1 (h) to L than φ(h)? What is the order α of the approximation of L by φ^1 (h), (i.e. L = φ^1 (h) + O(hα))?
d 1 u 1 v 1 0 .. .. 0 0 l 1 d 2 u 2 v 2 0 .. .. 0 0 l 2 d 3 u 3 v 3 0 .. 0 0 0 l 3 d 4 u 4 v 4 .. 0 :....... 0 .. 0 li di... :....... :... ln− 3 dn− 2 un− 2 vn− 2 0.... ln− 2 dn− 1 un− 1 0 .. .. 0 .. 0 ln− 1 dn
One uses the following algorithm: for i from 1 to n- li = li/di di+1 = di+1 − li ∗ ui if i<n- ui+1 = ui+1 − li ∗ vi end end Give the exact number of floating point operations needed to per- form this algorithm.
Polynomial p(x) Minimum number of arithmetic operations (x − 2)^17 + (x − 2)^31
4 x^5 − 6 x^12 + 2x^17 − x^33