Question: need help writing python code for this c) Write a function defined as: el GaussSeidel (Aaug, x, Niter = 15): Purpose: use the Gauss-Seidel method
c) Write a function defined as: el 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. Aauc an augmented matrix containing [A] b] having N rows and N+1 columns, where N is the number of equations in the set 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 GaussSaidol function to estimate and print the solutions to the following sets of linear equations: [3 1 11 x [2l 14 1 x 12 2 10 N 2 1 1 2 3 9 -10 2 4 X 1 4 12 x 2 3 4 2 7 3 x x 12 21 37 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
