Question: In C++ please 5. (20 points) Using Jacobi, Gauss-Seidel and SOR (1.4) iterative methods, write and run a computer code to solve the following linear
In C++ please
5. (20 points) Using Jacobi, Gauss-Seidel and SOR (1.4) iterative methods, write and run a computer code to solve the following linear system to four decimal places (rounded) of accuracy. Draw a graph to show the Euclidean norms of the errors of each method against the number of iterations, and compare the convergence rate of the three iterative methods 7 3 -12 3 8 1-4 1 14-1 71 T2 0 Compare the number of iterations needed in each case. (Hint: The exact solution is x-(-1, 1,1,1 5. (20 points) Using Jacobi, Gauss-Seidel and SOR (1.4) iterative methods, write and run a computer code to solve the following linear system to four decimal places (rounded) of accuracy. Draw a graph to show the Euclidean norms of the errors of each method against the number of iterations, and compare the convergence rate of the three iterative methods 7 3 -12 3 8 1-4 1 14-1 71 T2 0 Compare the number of iterations needed in each case. (Hint: The exact solution is x-(-1, 1,1,1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
