Question: Develop your own M-file function for Gauss-Seidel with relaxation. Here is the functions first line:function [x,ea,iter] = ...GaussSeidelR(A,b,lambda,es,maxit) In the event that the user does

Develop your own M-file function for Gauss-Seidel with relaxation. Here is the function’s first line:function [x,ea,iter] = ...GaussSeidelR(A,b,lambda,es,maxit)

In the event that the user does not enter a value for λ, set the default value as  λ = 1.Test it by duplicating Example 12.2 and then use it to solve Prob. 12.2b.

Example 12.2

Solve the following system with Gauss-Seidel using overrelaxation ( = 1.2) and

Data From Problem 12.2b.

Repeat (a) but use overrelaxation with λ = 1.2.

Solve the following system with Gauss-Seidel using overrelaxation ( = 1.2) and a stopping criterion of 5 = 10%: -3x1 + 12x =9 10x12x2 = 8

Step by Step Solution

3.58 Rating (148 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is an implementation of GaussSeidel with relaxation in MATLAB function x ea iter GaussSeidelRA ... View full answer

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 Applied Numerical Methods Questions!