Sei sulla pagina 1di 1

CN 3421 Process Modeling and Numerical Simulation

Homework #3
Due 14 Sep (Friday)
Instruction:
1. Solve all problems by using MATLAB.
2. Copy and paste your command window and MATLAB program into a single Word file
3. Upload your file to IVLE.
1. Solve A x = b
8

11

3
1

11

2
7
4

2
3
12

20
6

b
4

14

2. Consider the system A x = b, where


3.01
A 1.27
0.987

6.03
4.16
4.81

1.99
1.23
9.34

1
b 1
1

(a) Solve for x.


(b) Is the system ill-conditioned? Why?
(c) What is the condition number of the coefficient matrix in part (a)? Use the 1-norm
3. (a) Use MATLAB to get an exact solution S for the following linear system. (b) Use
Jacobi, Gauss-Siedel, and successive over relaxation (SOR) iteration methods ( = 1.5) to
solve the linear system. For all iterative methods, use P0 = [1 1 1 1 1 1 1 1 1]T as your
initial guess and perform 10 iterations. Show your results of P10. (c) Compare the speed
of convergence ||Pi- S||2 of these methods. Which method gives you the best answer after
10 iterations?

Potrebbero piacerti anche