Question: do i switch the first row with the second row. and then switch row 2 with row 3? to become [ 10 2 -1 [-1

do i switch the first row with the second row. and then switch row 2 with row 3?
to become
[ 10 2 -1 [-1
1 2 6 -2
0 4 2] 2 ]
?
if so please answer the question approporatly.
do i switch the first row with the second row. and then

Problem 1) Consider the following linear system of equations AX=B : 0101422216x1x2x3=212 (a) Solve the system using Gauss Seidel method (solve by hand). At each step, calculate the relative norm of the residuals (Br(k)) and stop when it reaches a tolerance of 0.1. (b) Modify the Gauss-Seidel function you completed in Lab 6 Assignment, such that the function first checks if the diagonal entries are zero. If needed, the function will swap the row that has a zero diagonal element with the next suitable row in A such that a matrix with non-zero diagonal elements is obtained. The function needs to record the swapping process by creating a permutation matrix, P. Subsequently, your function will start to solve the system using Gauss-Seidel. - Inputs of your function: A,B, initial guess for X, tolerance, maximum number of iterations - Output of your function: numerical solution for X (c) Use your function from Part (a) to solve the above system. Set the tolerance for relative norm of residuals to 0.0001. Report the following: - In a PDF file report the number of iterations needed to reach this accuracy, and output of your code for solution X. - Your MATLAB code in .m or .mlx format

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!