Question: Write a MATLAB function that performs the Successive Over-Relaxation method considering Ax=b. x = SOR(A,b,x0,omega,tol,maxn). x0 is the initial guess. omega is the relaxation parameter,
Write a MATLAB function that performs the Successive Over-Relaxation method considering Ax=b.
x = SOR(A,b,x0,omega,tol,maxn).
x0 is the initial guess. omega is the relaxation parameter, typically larger than 1.
tol is the tolerance for the stopping. Use the relative error.
maxn is the maximum number of iterations allowed.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
