Question: ) Write a function defined as: def GaussSeidel (Aaug, X, Niter = 15) Purpose: use the Gauss-Seidel method to estimate the solution to a set

) Write a function defined as: def GaussSeidel (Aaug, X, Niter = 15) Purpose: use the Gauss-Seidel method to estimate the solution to a set of N linear equations expressed in matrix form as Ax=b. Both A and b are contained in the function argument - Aaug. Aaug: an augmented matrix containing [A | b] having N rows and N+1 columns where N is the number of equations in the set. X: a vector (array) contain the values of the initial guess Niter the number of iterations (new x vectors) to compute return value: the final new x vector. Write and call a main() function that uses your Gauss Seidel function to estimate and print the solutions to the following sets of linear equations: [3 1 -1x 2 12 L2 1 4 1 1 2 ]L*: 10 1 -10 2 4 X. 2 1 4 12 X2 12 3 9 II 2 3 4 21 -1 2 7 3 X 37 ) Write a function defined as: def GaussSeidel (Aaug, X, Niter = 15) Purpose: use the Gauss-Seidel method to estimate the solution to a set of N linear equations expressed in matrix form as Ax=b. Both A and b are contained in the function argument - Aaug. Aaug: an augmented matrix containing [A | b] having N rows and N+1 columns where N is the number of equations in the set. X: a vector (array) contain the values of the initial guess Niter the number of iterations (new x vectors) to compute return value: the final new x vector. Write and call a main() function that uses your Gauss Seidel function to estimate and print the solutions to the following sets of linear equations: [3 1 -1x 2 12 L2 1 4 1 1 2 ]L*: 10 1 -10 2 4 X. 2 1 4 12 X2 12 3 9 II 2 3 4 21 -1 2 7 3 X 37
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
