0% found this document useful (0 votes)
18 views6 pages

Gauss-Jacobi Practice File

The document presents the results of iterative methods (Gauss-Seidel and Jacobi) for solving a system of equations involving variables x, y, and z. It includes detailed iterations showing the values of the variables, their percentage errors, and the maximum error at each step. Both methods converge towards the solution, with the final values approaching x = 1, y = 3, and z ≈ 4.

Uploaded by

aubreylougenita
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views6 pages

Gauss-Jacobi Practice File

The document presents the results of iterative methods (Gauss-Seidel and Jacobi) for solving a system of equations involving variables x, y, and z. It includes detailed iterations showing the values of the variables, their percentage errors, and the maximum error at each step. Both methods converge towards the solution, with the final values approaching x = 1, y = 3, and z ≈ 4.

Uploaded by

aubreylougenita
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 6

x = ( 1 -3y + 5z) / 12

y = ( 28 -x - 3z) / 5
z = ( 76 - 3x - 7y) / 13

GGGauss-Seidel Method
Iteration x y z {e%}x {e%}y {e%}z Max{e%}
0 1 0 1
1 0.5 4.9 3.09230769230769 100.00% 100.00% 67.66% 100.00%
2 0.1467948718 3.7152564103 3.81175542406312 240.61% 31.89% 18.87% 240.61%
3 0.7427506575 3.1643966141 3.97084397916351 80.24% 17.41% 4.01% 80.24%
4 0.9467525045 3.0281431116 3.99713390041069 21.55% 4.50% 0.66% 21.55%
5 0.9917700139 3.003365657 4.00008695072522 4.54% 0.82% 0.07% 4.54%
6 0.9991948152 3.0001088665 4.0001271914371 0.74% 0.11% 0.00% 0.74%
7 1.0000257798 2.9999185292 4.0000379197194 0.08% 0.01% 0.00% 0.08%
8 1.0000361676 2.9999700147 4.00000779959073 0.00% 0.00% 0.00% 0.00%
9 1.0000107462 2.999993171 4.00000119726263 0.00% 0.00% 0.00% 0.00%
10 1.0000022061 2.9999988404 4.00000011528714 0.00% 0.00% 0.00% 0.00%
11 1.0000003379 2.9999998632 3.9999999956551 0.00% 0.00% 0.00% 0.00%
12 1.0000000324 2.9999999961 3.99999999461113 0.00% 0.00% 0.00% 0.00%
13 0.9999999987 3.0000000035 3.99999999841629 0.00% 0.00% 0.00% 0.00%
14 0.9999999985 3.0000000013 3.99999999967691 0.00% 0.00% 0.00% 0.00%
15 1 3 3.99999999995085 0.00% 0.00% 0.00% 0.00%
x = ( 1 -3y + 5z) / 12
y = ( 28 -x - 3z) / 5
z = ( 76 - 3x - 7y) / 13

Jacobi Method
Iteration x y z {e%}x {e%}y {e%}z Max{e%}
0 1 0 1
1 0.5 4.8 5.61538461538 100.00% 100.00% 82.19% 100.00%
2 1.2230769231 2.1307692308 3.14615384615 59.12% 125.27% 78.48% 125.27%
3 0.8615384615 3.4676923077 4.41656804734 41.96% 38.55% 28.76% 41.96%
4 1.0566469428 2.7777514793 3.7801183432 18.46% 24.84% 16.84% 24.84%
5 0.9639447732 3.1205996055 4.10659990897 9.62% 10.99% 7.95% 10.99%
6 1.0142667274 2.9432511 3.94338218783 4.96% 6.03% 4.14% 6.03%
7 0.9905964699 3.0311173418 4.02726477831 2.39% 2.90% 2.08% 2.90%
8 1.0035809888 2.985521839 3.98541455365 1.29% 1.53% 1.05% 1.53%
9 0.9975422709 3.00803507 4.00696955079 0.61% 0.75% 0.54% 0.75%
10 1.000895212 2.9963098153 3.99624059207 0.33% 0.39% 0.27% 0.39%
11 0.9993561262 3.0020766024 4.00178043513 0.15% 0.19% 0.14% 0.19%
12 1.0002226974 2.9990605137 3.99903041576 0.09% 0.10% 0.07% 0.10%
13 0.9998308781 3.0005372111 4.00045448554 0.04% 0.05% 0.04% 0.05%
14 1.0000550662 2.999761133 3.99974976062 0.02% 0.03% 0.02% 0.03%
15 0.9999554503 3.0001391304 4.00011591308 0.01% 0.01% 0.01% 0.01%
16 1.0000135145 2.9999393621 3.99993536433 0.01% 0.01% 0.00% 0.01%
17 0.999988228 3.0000360785 4.00002953245 0.00% 0.00% 0.00% 0.00%
18 1.0000032856 2.9999846349 3.99998328974 0.00% 0.00% 0.00% 0.00%
19 0.9999968787 3.000009369 4.00000751529 0.00% 0.00% 0.00% 0.00%
20 1.0000007891 2.9999961151 3.99999567544 0.00% 0.00% 0.00% 0.00%
21 0.9999991693 3.0000024369 4.00000190977 0.00% 0.00% 0.00% 0.00%
22 1.0000001865 2.9999990203 3.99999887951 0.00% 0.00% 0.00% 0.00%
23 0.9999997781 3.000000635 4.0000004845 0.00% 0.00% 0.00% 0.00%
24 1.0000000431 2.9999997537 3.9999997093 0.00% 0.00% 0.00% 0.00%
25 0.9999999405 3.0000001658 4.00000012268 0.00% 0.00% 0.00% 0.00%
26 1.0000000097 2.9999999383 3.99999992447 0.00% 0.00% 0.00% 0.00%
27 0.999999984 3.0000000434 4.00000003099 0.00% 0.00% 0.00% 0.00%
28 1.0000000021 2.9999999846 3.99999998034 0.00% 0.00% 0.00% 0.00%
29 0.9999999957 3.0000000114 4.00000000781 0.00% 0.00% 0.00% 0.00%
30 1 2.9999999962 3.99999999487 0.00% 0.00% 0.00% 0.00%
31 0.9999999988 3.000000003 4.00000000196 0.00% 0.00% 0.00% 0.00%
32 1 2.9999999991 3.99999999866 0.00% 0.00% 0.00% 0.00%
33 1 3.0000000008 4.00000000049 0.00% 0.00% 0.00% 0.00%
34 1 3 3.99999999965 0.00% 0.00% 0.00% 0.00%
x = ( 1 -3y + 5z) / 12
y = ( 28 -x - 3z) / 5
z = ( 76 - 3x - 7y) / 13

Gauss-Seidel Method
Iteration x y z {e%}x {e%}y {e%}z MAX{e%}
0 1 0 1
1 0.5 4.9 3.09230769230769 100.00% 100.00% 67.66% 100.00%
2 0.1467948718 3.7152564103 3.81175542406312 240.61% 31.89% 18.87% 240.61%
3 0.7427506575 3.1643966141 3.97084397916351 80.24% 17.41% 4.01% 80.24%
4 0.9467525045 3.0281431116 3.99713390041069 21.55% 4.50% 0.66% 21.55%
5 0.9917700139 3.003365657 4.00008695072522 4.54% 0.82% 0.07% 4.54%
6 0.9991948152 3.0001088665 4.0001271914371 0.74% 0.11% 0.00% 0.74%
7 1.0000257798 2.9999185292 4.0000379197194 0.08% 0.01% 0.00% 0.08%
8 1.0000361676 2.9999700147 4.00000779959073 0.00% 0.00% 0.00% 0.00%
9 1.0000107462 2.999993171 4.00000119726263 0.00% 0.00% 0.00% 0.00%
10 1.0000022061 2.9999988404 4.00000011528714 0.00% 0.00% 0.00% 0.00%
11 1.0000003379 2.9999998632 3.9999999956551 0.00% 0.00% 0.00% 0.00%
12 1.0000000324 2.9999999961 3.99999999461113 0.00% 0.00% 0.00% 0.00%
13 0.9999999987 3.0000000035 3.99999999841629 0.00% 0.00% 0.00% 0.00%
14 0.9999999985 3.0000000013 3.99999999967691 0.00% 0.00% 0.00% 0.00%
15 1 3 3.99999999995085 0.00% 0.00% 0.00% 0.00%
x = ( 1 -3y + 5z) / 12
y = ( 28 -x - 3z) / 5
z = ( 76 - 3x - 7y) / 13

Jacobi Method
Iteration x y z {e%}x {e%}y {e%}z MAX{e%}
0 1 0 1
1 0.5 4.8 5.61538461538 100.00% 100.00% 82.19% 100.00%
2 1.2230769231 2.1307692308 3.14615384615 59.12% 125.27% 78.48% 125.27%
3 0.8615384615 3.4676923077 4.41656804734 41.96% 38.55% 28.76% 41.96%
4 1.0566469428 2.7777514793 3.7801183432 18.46% 24.84% 16.84% 24.84%
5 0.9639447732 3.1205996055 4.10659990897 9.62% 10.99% 7.95% 10.99%
6 1.0142667274 2.9432511 3.94338218783 4.96% 6.03% 4.14% 6.03%
7 0.9905964699 3.0311173418 4.02726477831 2.39% 2.90% 2.08% 2.90%
8 1.0035809888 2.985521839 3.98541455365 1.29% 1.53% 1.05% 1.53%
9 0.9975422709 3.00803507 4.00696955079 0.61% 0.75% 0.54% 0.75%
10 1.000895212 2.9963098153 3.99624059207 0.33% 0.39% 0.27% 0.39%
11 0.9993561262 3.0020766024 4.00178043513 0.15% 0.19% 0.14% 0.19%
12 1.0002226974 2.9990605137 3.99903041576 0.09% 0.10% 0.07% 0.10%
13 0.9998308781 3.0005372111 4.00045448554 0.04% 0.05% 0.04% 0.05%
14 1.0000550662 2.999761133 3.99974976062 0.02% 0.03% 0.02% 0.03%
15 0.9999554503 3.0001391304 4.00011591308 0.01% 0.01% 0.01% 0.01%
16 1.0000135145 2.9999393621 3.99993536433 0.01% 0.01% 0.00% 0.01%
17 0.999988228 3.0000360785 4.00002953245 0.00% 0.00% 0.00% 0.00%
18 1.0000032856 2.9999846349 3.99998328974 0.00% 0.00% 0.00% 0.00%
19 0.9999968787 3.000009369 4.00000751529 0.00% 0.00% 0.00% 0.00%
20 1.0000007891 2.9999961151 3.99999567544 0.00% 0.00% 0.00% 0.00%
21 0.9999991693 3.0000024369 4.00000190977 0.00% 0.00% 0.00% 0.00%
22 1.0000001865 2.9999990203 3.99999887951 0.00% 0.00% 0.00% 0.00%
23 0.9999997781 3.000000635 4.0000004845 0.00% 0.00% 0.00% 0.00%
24 1.0000000431 2.9999997537 3.9999997093 0.00% 0.00% 0.00% 0.00%
25 0.9999999405 3.0000001658 4.00000012268 0.00% 0.00% 0.00% 0.00%
26 1.0000000097 2.9999999383 3.99999992447 0.00% 0.00% 0.00% 0.00%
27 0.999999984 3.0000000434 4.00000003099 0.00% 0.00% 0.00% 0.00%
28 1.0000000021 2.9999999846 3.99999998034 0.00% 0.00% 0.00% 0.00%
29 0.9999999957 3.0000000114 4.00000000781 0.00% 0.00% 0.00% 0.00%
30 1 2.9999999962 3.99999999487 0.00% 0.00% 0.00% 0.00%
31 0.9999999988 3.000000003 4.00000000196 0.00% 0.00% 0.00% 0.00%
32 1 2.9999999991 3.99999999866 0.00% 0.00% 0.00% 0.00%
33 1 3.0000000008 4.00000000049 0.00% 0.00% 0.00% 0.00%
34 1 3 3.99999999965 0.00% 0.00% 0.00% 0.00%

You might also like