12.07.2015 Views

Lecture Notes Course ÅMA 190 Numerical Mathematics, First ...

Lecture Notes Course ÅMA 190 Numerical Mathematics, First ...

Lecture Notes Course ÅMA 190 Numerical Mathematics, First ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

We compare the results of Jacobi and Gauss-Seidel iterations. The followingoutput was obtained from simple Fortran programs implementing these methodsand using the null vector as starting vector.Jacobi iterationGiven system10.0000 1.0000 2.0000 13.00003.0000 11.0000 1.0000 15.00002.0000 3.0000 12.0000 17.0000Starting vector.000000 .000000 .000000Jacobi approximates1.300000 1.363636 1.416667.880303 .880303 .8590911.040151 1.045455 1.049874.985480 .984516 .9819441.005160 1.005601 1.006291.998182 .998021 .9977401.000650 1.000701 1.000798.999770 .999750 .9997161.000082 1.000088 1.000101.999971 .999969 .9999641.000010 1.000011 1.000013.999996 .999996 .9999951.000001 1.000001 1.0000021.000000 .999999 .9999991.000000 1.000000 1.000000Gauss-Seidel iterationGiven system10.000000 1.000000 2.000000 13.0000003.000000 11.000000 1.000000 15.0000002.000000 3.000000 12.000000 17.000000Starting vector.000000 .000000 .000000Gauss-Seidel approximates1.300000 1.009091 .9477271.009546 1.002149 .9978721.000211 1.000136 .9999311.000000 1.000006 .9999981.000000 1.000000 1.00000036

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!