Question: 2. Write a program for solving AX = b using the Gauss-Seidel method using the function gauss Seidel.. Input should consist of the matrix
2. Write a program for solving AX = b using the Gauss-Seidel method using the function gauss Seidel.. Input should consist of the matrix A and the vector B. a) Test the program with 3 -2 1 0 0 1 10 -2 4 -2 1 0 0 -8 1 -2 4 -2 1 0 10 A = b = 0 1 -2 0 0 1 -2 1 0 0 1 -2 3 4 -2 1 10 4 -2 -8 10 Note that A is not diagonally dominant, but this does not necessarily preclude convergence. b) Solve the same programme, now using underrelaxation with =0.5 and then =0.8. How is convergence affected?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
