CE5143 Homework 4 (Continued)
David Wagner 2007/10/03 13:12
2. Problem #3.57
|xi(x+1) - xi(x)| ≤ 10-2 ; i=1,2,3,4
In Problems 3.56 and 3.57, solve the given system of equations using the Jacobi iteration method with the initial approximation, x(1) = 0.
;
;
;
.
Diagonally dominant
- 3 > 1+1✔;
- 3 > 1+1✔;
- 4 > 1+1✔;
- 4 > 1+1✔.
Solve each equation for its diagonal variable
;
;
;
.
x(1) = 0 →
-1;
2/3;
3/2;
3.
x(2) = {-1, 2/3, 3/2, 3} →
0.2222;
0.8333;
2.4167;
3.1250.
x(3) = {0.2222, 0.8333, 2.4167, 3.1250} →
0.3194;
1.5463;
2.4897;
3.6597.
x(4) = {0.3194, 1.5463, 2.4897, 3.6597}→
0.7353;
1.6030;
2.8015;
3.7023.
Fourth iteration complete, as assigned. Convergence criteria not yet met.
0.4159 > 10-2
(already failed convergence test)

| Iteration | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
|---|---|---|---|---|---|---|---|---|
| x1 | 0.7353 | 0.7684 | 0.9099 | 0.9212 | 0.9694 | 0.9732 | 0.9896 | 0.9909 |
| x2 | 1.6030 | 1.8456 | 1.8649 | 1.9475 | 1.9540 | 1.9821 | 1.9844 | 1.9939 |
| x3 | 2.8015 | 2.8263 | 2.9325 | 2.9409 | 2.9770 | 2.9799 | 2.9922 | 2.9932 |
| x4 | 3.7023 | 3.8842 | 3.8987 | 3.9606 | 3.9655 | 3.9866 | 3.9883 | 3.9954 |
| Δx1 | 0.4159 | 0.0331 | 0.1415 | 0.0113 | 0.0482 | 0.0038 | 0.0164 | 0.0013 |
| Δx2 | 0.0567 | 0.2426 | 0.0193 | 0.0825 | 0.0066 | 0.0281 | 0.0022 | 0.0096 |
| Δx3 | 0.3118 | 0.0248 | 0.1061 | 0.0084 | 0.0361 | 0.0029 | 0.0123 | 0.0010 |
| Δx4 | 0.0426 | 0.1819 | 0.0145 | 0.0619 | 0.0049 | 0.0211 | 0.0017 | 0.0072 |
| x={1,2,3,4} |
|---|
3. Problem #3.66
//Solve the following tridiagonal system of equations using LU decomposition://
;
;
;
.
5;
0.8000.
n=4;i=(2,3)
4;
-6.2;
-1.1290
1
-4.8710
-0.8212
12;
11.8543;
2.6000.
i=(2,3,4)
-1.3871;
-0.2848;
4.0000.
4.0000;
3
2
1
| x={1,2,3,4} |
|---|
Discussion