

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!


(a) In three digit (base 10) arithmetic with rounding, what is the value of machine epsilon?
Use three digit arithmetic with rounding to do the following computations. In each case, find the absolute and relative errors in your results compared to the exact answer. (b) (221 − 0 .328) − 219 (c) (221 − 219) − 0. 327
A =
4
3 4 1 1
(a) Find a permutation matrix P , a lower triangular matrix L and an upper triangular matrix U such that A = P LU with the factorization corresponding to Gauss elimina- tion with partial pivoting. (b) Use the factorization to solve Ax = b where b = ( 12 , 1)T^.
S(x) =
{ (^) 2 + 2x − x^3 , 0 ≤ x ≤ 1 , 3 + b(x − 1) + c(x − 1)^2 + d(x − 1)^3 , 1 ≤ x ≤ 2. Find b, c and d.
0
f (x) dx ≈ A 1 f (1/4) + A 2 f (3/4) = Q 1
(a) Show that if we try to determine A 1 and A 2 in such a way that the rule is exact for all first degree polynomials, we are led to the linear system of problem 2. (b) What result does the rule give when f (x) = ex^? Compare the result with the exact value and that obtained by using the (simple) Trapezoid rule, T 1. Which rule does better? (c) Is the above rule exact for quadratics?
(d) By scaling or otherwise find the corresponding rule for an integral over an interval of length h.
I =
∫ (^) h
0
f (x) dx ≈ α 1 f (h/4) + α 2 f (3h/4) = Qh
(e) Given that the error of the rule is of the form
e = I − Qh = cf ′′(ζ)h^3
for smooth f , where 0 < ζ < h, find the constant c.