Search for question
Question

(a) Use the Gauss-Seidel method to solve the following system until the percent relative error falls below e. = 5%: \left[\begin{array}{ccc} 0.8 & -0.4 & \\ -0.4 & 0.8 &

-0.4 \\ & -0.4 & 0.8 \end{array}\right]\left\{\begin{array}{l} x_{1} \\ x_{2} \\ x_{3} \end{array}\right\}=\left\{\begin{array}{c} 41 \\ 25 \\ 105 \end{array}\right\} (b) Repeat (a) but use over relaxation with = 1.2. Develop your wn M-file function for Gauss-Seidel with relaxation. Here is the function's first line: function [x,ea, iter] = Gauss SeidelR(A,b, lambda, es, maxit) In the event that the user does not enter a value for , set the default value as A = 1.Test it

Fig: 1

Fig: 2

Fig: 3

Fig: 4

Fig: 5

Fig: 6

Fig: 7