MATLAB code implements the Gauss-Seidel method in the matrix form

19

Description

MATLAB code implements the Gauss-Seidel method in the matrix form

 

>> Eps = 1e-8 ; x0 = [0;0;0] ;
>> A = [2 -1 1; -2 5 -1; 1 -2 4] ; b = [-1;1;3] ;
x = 

-1.0000
0
1.0000


Iters =
11







>> A = [-5 1 -2; 1 6 3; 2 -1 -4] ; b = [13; 1; -1] ;



x =
-2.0000
1.0000
-1.0000


Iters =
15

Reviews

There are no reviews yet.

Be the first to review “MATLAB code implements the Gauss-Seidel method in the matrix form”

Your email address will not be published. Required fields are marked *

SKU: 7GAMATTM61 Category: