Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Solved Examples 3

14/12/2020

Mansoura University Mechatronics Engineering Programs


Faculty of Engineering

Prof. Dr. Magdi S. El-Azab Numerical Analysis (MTH 201) .

Example 1 Starting with the initial values


( ) ( ) ( ) ( )
( ) ( )
Use Gauss-Jacobi iteration method to solve the following system of equations correct to three
decimal places. (All computations have to be executed to six decimal places)

Answer

0 -0.25 0.25 -0.25 3.75


-0.125 0 0.125 -0.125 1.25
0.2 -0.2 0 -0.3 1.3
0.4 -0.2 0.2 0 0.8
3 1 1 2
3.250000 0.750000 1.100000 2.000000
3.337500 0.731250 1.200000 2.170000
3.324688 0.711563 1.170250 2.228750
3.307484 0.702102 1.154000 2.221613
3.307571 0.703113 1.154593 2.213373
3.309527 0.704206 1.156880 2.213324
3.309838 0.704254 1.157067 2.214346
3.309617 0.704110 1.156813 2.214498
3.309551 0.704087 1.156752 2.214387

From the table, the solution of the given system is


( )

Dr Magdi S. El-Azab Solved Examples 3 Page 1/2


Example 2 Starting with the initial values
( ) ( ) ( ) ( )
( ) ( )
solve the following system of equations correct to three decimal places by Gauss-Seidel
iterative method

Answer

0 -0.25 0.25 -0.25 1


-0.125 0 0.125 -0.125 4
0.2 -0.2 0 -0.3 -1
0.333333 -0.166667 0.166667 0 -6
1 4 0.5 0
0.125000 4.046875 -1.784375 -6.930208
1.274740 4.483887 0.437233 -6.249529
1.550719 4.642005 0.256602 -6.213994
1.457148 4.626681 0.230292 -6.247016
1.462657 4.626831 0.241270 -6.243375
1.464454 4.627524 0.240399 -6.243036
1.463978 4.627432 0.240220 -6.243209
1.463999 4.627429 0.240277 -6.243192

From the table, the solution of the given system after 7 iterations is
( )

Dr Magdi S. El-Azab Solved Examples 3 Page 2/2

You might also like