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

Chapte 4.6 Demo

The document presents a system of equations and demonstrates the solutions using the Gauss-Seidel and Jacobi methods. It includes iterations for both methods, showing the convergence of variables x, y, and z towards the values of 1, 3, and 4 respectively. The results indicate that both methods effectively reach the same solution with decreasing error percentages over iterations.

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)
7 views6 pages

Chapte 4.6 Demo

The document presents a system of equations and demonstrates the solutions using the Gauss-Seidel and Jacobi methods. It includes iterations for both methods, showing the convergence of variables x, y, and z towards the values of 1, 3, and 4 respectively. The results indicate that both methods effectively reach the same solution with decreasing error percentages over iterations.

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

12x + 3y -5z = 1 1.

000
1x+5y +3z = 28
3x+7y+13z=76

> equation can be written in the form

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
0 1 0 1
1 0.5 4.9 3.0923076923 100.00% 100.00%
2 0.1467948718 3.7152564103 3.8117554241 240.61% 31.89%
3 0.7427506575 3.1643966141 3.9708439792 80.24% 17.41%
4 0.9467525045 3.0281431116 3.9971339004 21.55% 4.50%
5 0.9917700139 3.003365657 4.0000869507 4.54% 0.82%
6 0.9991948152 3.0001088665 4.0001271914 0.74% 0.11%
7 1.0000257798 2.9999185292 4.0000379197 0.08% 0.01%
8 1.0000361676 2.9999700147 4.0000077996 0.00% 0.00%
9 1.0000107462 2.999993171 4.0000011973 0.00% 0.00%
10 1.0000022061 2.9999988404 4.0000001153 0.00% 0.00%
11 1.0000003379 2.9999998632 3.9999999957 0.00% 0.00%
12 1.0000000324 2.9999999961 3.9999999946 0.00% 0.00%
13 0.9999999987 3.0000000035 3.9999999984 0.00% 0.00%
14 0.9999999985 3.0000000013 3.9999999997 0.00% 0.00%
15 0.9999999996 3.0000000003 4 0.00% 0.00%
16 0.9999999999 3 4
17 1 3 4
18 1 3 4
19 1 3 4
20 1 3 4

x=1
y=3
z=4
|e%|z Max|e%|

67.66% 100.00%
18.87% 240.61%
4.01% 80.24%
0.66% 21.55%
0.07% 4.54%
0.00% 0.74%
0.00% 0.08%
0.00% 0.00%
0.00% 0.00%
0.00% 0.00%
0.00% 0.00%
0.00% 0.00%
0.00% 0.00%
0.00% 0.00%
0.00% 0.00%
12x + 3y -5z = 1
1x+5y +3z = 28
3x+7y+13z=76

> equation can be written in the form

x=(1-3y+5z)/12
y=(28-x-3z)/5
z=(76-3x-7y)/13
jacobi method
k xk yk zk |e%|x |e%|y
0 1 0 1
1 0.5 4.8 5.61538461538462 100.00% 100.00%
2 1.22307692307692 2.1307692308 3.14615384615385 59.12% 125.27%
3 0.861538461538462 3.4676923077 4.41656804733728 41.96% 38.55%
4 1.05664694280079 2.7777514793 3.78011834319527 18.46% 24.84%
5 0.963944773175543 3.1205996055 4.10659990896677 9.62% 10.99%
6 1.01426672735548 2.9432511 3.94338218783189 4.96% 6.03%
7 0.990596469933748 3.0311173418 4.02726477831075 2.39% 2.90%
8 1.0035809888387 2.985521839 3.98541455364541 1.29% 1.53%
9 0.997542270928889 3.00803507 4.00696955079202 0.61% 0.75%
10 1.00089521198542 2.9963098153 3.9962405920691 0.33% 0.39%
11 0.999356126194038 3.0020766024 4.00178043512851 0.15% 0.19%
12 1.00022269737985 2.9990605137 3.99903041576059 0.09% 0.10%
13 0.999830878145892 3.0005372111 4.00045448554399 0.04% 0.05%
14 1.00005506620974 2.999761133 3.9997497606222 0.02% 0.03%
15 0.999955450331477 3.0001391304 4.00011591308152 0.01% 0.01%
16 1.00001351452112 2.9999393621 3.99993536433173 0.01% 0.01%
17 0.999988227950355 3.0000360785 4.00002953244947 0.00% 0.00%
18 1.00000328556309 2.9999846349 3.99998328974398 0.00% 0.00%
19 0.999996878658263 3.000009369 4.00000751528685 0.00% 0.00%
20 1.00000078910927 2.9999961151 3.9999956754414 0.00% 0.00%
21 0.999999169326525 3.0000024369 4.00000190976912 0.00% 0.00%
22 1.00000018650881 2.9999990203 3.99999887950979 0.00% 0.00%
23 0.999999778060774 3.000000635 4.00000048450469 0.00% 0.00%
24 1.00000004312886 2.9999997537 3.99999970929778 0.00% 0.00%
25 0.999999940452818 3.0000001658 4.00000012267832 0.00% 0.00%
26 1.00000000966708 2.9999999383 3.99999992446713 0.00% 0.00%
27 0.999999983952358 3.0000000434 4.0000000309909 0.00% 0.00%
28 1.0000000020663 2.9999999846 3.99999998034144 0.00% 0.00%
29 0.999999995655187 3.0000000114 4.0000000078074 0.00% 0.00%
30 1.00000000040761 2.9999999962 3.99999999487395 0.00% 0.00%
31 0.999999998818014 3.000000003 4.00000000196042 0.00% 0.00%
32 1.00000000006832 2.9999999991 3.99999999866055 0.00% 0.00%
33 0.999999999676861 3.0000000008 4.00000000049031 0.00% 0.00%
34 1.00000000000679 2.9999999998 3.99999999964918 0.00% 0.00%
35 0.999999999911216 3.0000000002 4.00000000012204 0.00% 0.00%
0.999999999998568 2.9999999999 3.99999999990788
0.999999999975484 3.0000000001 4.0000000000302
0.999999999998693 3 3.99999999997574
0.999999999993196 3 4.00000000000742
0.999999999999387 3 3.99999999999359
|e%|z Max|e%|

82.19% 100.00%
78.48% 125.27%
28.76% 41.96%
16.84% 24.84%
7.95% 10.99%
4.14% 6.03%
2.08% 2.90%
1.05% 1.53%
0.54% 0.75%
0.27% 0.39%
0.14% 0.19%
0.07% 0.10%
0.04% 0.05%
0.02% 0.03%
0.01% 0.01%
0.00% 0.01%
0.00% 0.00%
0.00% 0.00%
0.00% 0.00%
0.00% 0.00%
0.00% 0.00%
0.00% 0.00%
0.00% 0.00%
0.00% 0.00%
0.00% 0.00%
0.00% 0.00%
0.00% 0.00%
0.00% 0.00%
0.00% 0.00%
0.00% 0.00%
0.00% 0.00%
0.00% 0.00%
0.00% 0.00%
0.00% 0.00%
0.00% 0.00%

You might also like