Please answer this question
need a quick response
Will rate and thanks in advance
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
Please answer this question need a quick response Will rate and thanks in advance
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Please answer this question need a quick response Will rate and thanks in advance
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!