Docsity

Math 170A Homework Assignment 4: Numerical Linear Algebra, Assignments of Mathematics

Toggle sidebar
bg1
Math 170A: Numerical Linear Algebra
Instructor: James R. Bunch
Winter Quarter 2007
Homework Assignment 4
Due Wednesday, January 31
Reminder: Midterm #1 on Friday, Feb 2
Analytical Problems
1. 5(b), 6(b) p.100
2. 1(b), 2(b) p.109
3. Determine the number of mults and adds:
(a) for k = 1,· · · , n −1do
x(k)←y∗z+ 7.4
for i = 1,· · · , k do
y←3.9∗z
for j = 1,· · · , i −1do
z←x(j)∗y∗(z−4.1)
end
end
end
(b) for k = 1,· · · , n −1do
x←17 ∗y/z
for j = 1,· · · , k do
a(j, k)←a(j, k)∗x
for i = 1,· · · , j −1, do
b(i)←b(i)/x
end
end
end
4. Let A=10−61
4−2, b =2
1
(a) Solve Ax =b(in exact arithmetic). Calculate κ∞(A) and kxk∞.
1
pf2

Partial preview of the text

Download Math 170A Homework Assignment 4: Numerical Linear Algebra and more Assignments Mathematics in PDF only on Docsity!

Math 170A: Numerical Linear Algebra

Instructor: James R. Bunch

Winter Quarter 2007

Homework Assignment 4 Due Wednesday, January 31 Reminder: Midterm #1 on Friday, Feb 2

Analytical Problems

  1. 5(b), 6(b) p.
  2. 1(b), 2(b) p.
  3. Determine the number of mults and adds:

(a) f or k = 1, · · · , n − 1 do x(k) ← y ∗ z + 7. 4 f or i = 1, · · · , k do y ← 3. 9 ∗ z f or j = 1, · · · , i − 1 do z ← x(j) ∗ y ∗ (z − 4 .1) end end end (b) f or k = 1, · · · , n − 1 do x ← 17 ∗ y/z f or j = 1, · · · , k do a(j, k) ← a(j, k) ∗ x f or i = 1, · · · , j − 1 , do b(i) ← b(i)/x end end end

  1. Let A =

[

10 −^6

]

, b =

[

]

(a) Solve Ax = b (in exact arithmetic). Calculate κ∞(A) and ‖x‖∞.

(b) Solve Ax = b in 4 decimal digit (rounding) arithmetic by Gaussian elimination. Let z be the computed solution. Calculate ‖x − z‖∞/‖x‖. Show there does not exist E, f ∼= 0 s.t. (A+E)z = b+f. (c) Solve Ax = b in 4 decimal digit (rounding) arithmetic by partial pivoting. Let y be the computed solution. Find E, f ∼= 0 s.t. (A + E)y = b + f.