Question: Available for you to use in this problem is the following function: function [ x , err _ approx,iter ] = gauss _ seidel (
Available for you to use in this problem is the following function:
function xerrapprox,iter gaussseidel errstop, maxiter
Write a script that uses the gaussseidel function to solve the following system of equations.
Compute the approximate relative percent error for each component after each iteration. Continue the method until the maximum approximate relative percent error of each component falls below
Requirements:
Assign the variable to the solution of the problem as a column matrix.
Assign the variable errapprox to the row matrix of approximate relative percent errors of each component after the solution is found.
Assign the variable iter to the number of iterations needed until the maximum error fell below the threshold.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
