Develop your own M-file function for Gauss-Seidel with relaxation. Here is the functions first line:function [x,ea,iter] =

Question:

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

image

Data From Problem 12.2b.

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

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: