Docsity

Math 477 Homework: Iteration Methods for Linear Systems, Assignments of Linear Algebra

Toggle sidebar
bg1
Math 477 Last Homework C. Tier
1. Consider
(A)3−1
−1 2 u
v=5
4 3−1
−1 2 ; (B)
3 1 1
1 3 1
1 1 3
u
v
w
=
6
3
5
(a) Compute the first three iteration steps using Jacobi, Gauss-Seidel and SOR with ω=
1.5with the initial vector [0,...,0]T.
(b) Find the exact solutions and compare the errors in each of the methods.
(c) Compute the iteration matrices GJ,GGS and GSOR . Rank the speeds of convergence.
(d) For the SOR iteration in (A), find the optimal ωthat leads to the fastest convergence.
2. Find the explicit form of the interation matrix G=M−1Nin the Gauss-Seidel method for:
A=
2−1
−1 2 −1
−1 2 −1
.........
−1 2 −1
−1 2
3. Write a Matlab program to compare Jacobi, Gauss-Seidel, and SOR on the system:
3−10001
2
−1 3 −1 0 1
20
0−1 3 −100
0 0 −1 3 −1 0
01
20−1 3 −1
1
2000−1 3
u1
u2
u3
u4
u5
u6
=
5
2
3
2
1
1
3
2
5
2
Let the number of iterations be 100, 1000, 10000. Compare the errors in the infinity norm
and two norm using the exact solution computed using Matlab’s \operator.

Partial preview of the text

Download Math 477 Homework: Iteration Methods for Linear Systems and more Assignments Linear Algebra in PDF only on Docsity!

Math 477 Last Homework C. Tier

  1. Consider

(A)

u

v

; (B)

u

v

w

(a) Compute the first three iteration steps using Jacobi, Gauss-Seidel and SOR with ω =

  1. 5 with the initial vector [0,... , 0]

T .

(b) Find the exact solutions and compare the errors in each of the methods.

(c) Compute the iteration matrices GJ , GGS and GSOR. Rank the speeds of convergence.

(d) For the SOR iteration in (A), find the optimal ω that leads to the fastest convergence.

  1. Find the explicit form of the interation matrix G = M

− 1 N in the Gauss-Seidel method for:

A =

  1. Write a Matlab program to compare Jacobi, Gauss-Seidel, and SOR on the system:

1 2 − 1 3 − 1 0

1 2

1 2

1 2

u 1

u 2

u 3

u 4

u 5

u 6

5 2

Let the number of iterations be 100, 1000, 10000. Compare the errors in the infinity norm

and two norm using the exact solution computed using Matlab’s \ operator.