Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started