Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Implement SOR Method and solve problem 5 Fill in the missing part of the template. 5. (SOR) Implement the SOR (Successive Over-relaxation) Method using MATLAB.

Implement SOR Method and solve problem 5

Fill in the missing part of the template.

image text in transcribed

image text in transcribed

5. (SOR) Implement the SOR (Successive Over-relaxation) Method using MATLAB. Use the stopping criterion we discussed in class. Submit your codes through MATLAB Grader. See MATLAB Grader for details. Use your codes for SOR to solve the following linear system, 112212211x=135 - Can you find a such that the SOR method converges? Discuss your findings. %%%%%% Do not modify this part %%%%%% A=[122111221];b=[135];x=[000];eps=1e5;x=sor(A,b,x,eps) \% This is your code for SOR \% Use similar structure of Jacobi method function x=sor(A,b,x, tol ) x=x; x1=ones(size(x)); iter =0; sigma =0.3;% this is the parameter in SOR. D= ? L= ? while ? ? ? % what is the scheme for SOR? ? if iter >500 disp('Exceeded max number of iterations') break end end end end

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Foundations Technology Fundamentals For IT Success

Authors: Bob Bryla

1st Edition

0782143725, 9780782143720

More Books

Students also viewed these Databases questions