

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!


Assume a decimal (base 10) floating point system having machine precision ǫmach = 5 × 10 −^6 and an exponent range of ±20. What is the result of each of the following floating-point operations (a) 1 + 10−^7 (b) 1 + 10^3 (c) 1 + 10^7 (d) 10^10 + 10^3 (e) 10^10 / 10 −^15 (f) 10−^10 × 10 −^15
(a) Traditional Numerical Analysis doctrine says that one rarely, if ever, computes the inverse of a matrix. Why is this? (b) Suppose A, B and C are n × n matrices with B and C nonsingular, and b ∈ Rn. Write a MATLAB script which evaluates
x = B−^1 (2A + I)(C−^1 + A)b
without computing any matrix inverses. (In MATLAB I =eye(n).)
A =
(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 = (10, 5)T^.
S(x) =
1 + B(x − 1) − D(x − 1)^3 for 1 ≤ x ≤ 2 , 1 + b(x − 2) − 34 (x − 2)^2 + d(x − 2)^3 for 2 ≤ x ≤ 3.
If S interpolates the data (1, 1), (2, 1) and (3, 0), find B, D, b, and d.
∫ (^) a 0 f^ (x), dx^ gives the value 5 and the Midpoint rule gives the value 4. What value does Simpson’s rule give?
∫ (^3) h
0
f (x) dx ≈ Qh =
hf (h) +
hf (3h).
(a) Find its degree of precision, that is find the largest integer k such that the formula is exact for all polynomials of degree ≤ k. (b) Given that the error of the rule is of the form
e = I − Qh = cf (n)(ζ)hn
for smooth f , where 0 < ζ < 3 h, find the values of n and c.