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 [x,err_approx,iter]= gauss_seidel(A,6, err_stop, maxiter)
Write a script that uses the gauss_seidel function to solve the following system of equations.
0.8x1-0.4x2,=41
-0.4x1+0.8x2-0.4x3=25
-0.4x2+0.8x3=105
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 5%.
Requirements:
Assign the variable x to the solution of the problem as a 31 column matrix.
Assign the variable err_approx 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.
 Available for you to use in this problem is the following

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!