Page 1 of 1

Please answer this question need a quick response Will rate and thanks in advance

Posted: Sat May 14, 2022 7:42 pm
by answerhappygod
Please answer this question
need a quick response
Will rate and thanks in advance
Please Answer This Question Need A Quick Response Will Rate And Thanks In Advance 1
Please Answer This Question Need A Quick Response Will Rate And Thanks In Advance 1 (69.01 KiB) Viewed 46 times
Given the linear system of equations 6X_1 +x_2 +X_5 = 2 X_2-0.1 x_4 = 3 X 1 + 10*x_3 + 5*x_5 = 4 x_2 + 3x_4 +x_5/10 = 5 X_1 + x_3 + 2.5x_5 = 6 Starting with an initial guess x0 = [0,0,0,0,0)': 1) Run 2 iterations of the Gauss-Seidel method (without relaxation) and return the solution vector in X1; 2) Run 4 iterations of the Gauss-Seidel method (without relaxation) and return the solution vector in X2: 3) Run 2 iterations of the Gauss-Seidel method with relaxation with 1 = 1.2, and return the solution vector in X3; 4) Run 4 iterations of the Gauss-Seidel method with relaxation with 2 = 1.2, and return the solution vector in X4: Function 1 function (x1,x2,X3,X4) = LinearSystem() 2 3 Output: X1 (5x1 vector): Gauss-Seidel with 2 iterations 5 X2 (5x1 vector): Gauss-Seidel with 4 iterations 6 X3 (5x1 vector): Gauss-Seidel w/ relaxation with 2 iterations 7 X4 (5x1 vector): Gauss-Seidel w/ realxation with 4 iterations 8 9 % WRITE YOUR CODE HERE 10 10