Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question: [ 2 0 Marks ] Consider the following linear system 3 + 2 4 = 9 7 3 5 + 2 = 6 +

Question: [20 Marks]
Consider the following linear system
3+24=9
735+2=6
+++=10
2+53=3
a) Solve the system using Matlab/Octave rref, backslash, and the inverse commands. Call the
solution X.[3]
b) Compute the spectral radius of the coefficient matrix. [2]
c) Use the 2-norm to Compute the condition number of the coefficient matrix. What the
number tells you about the matrix. [2]
d) Use Matlab/Octave code to solve the system using the Jacobi method starting with initial
value
(0)=(0.5,0.5,0.5,0.5,0.5). Call the solution . Print 10 iterations. [4]
e) Use Matlab/Octave code to solve the system using the Gauss-Seidel method starting with initial
value
(0)=(0.5,0.5,0.5,0.5,0.5). Call the solution . Print 10 iterations. [4]
f) Use Matlab/Octave code to compute the 2 and 2for the errors in the
approximation. [3]
g) Are the two numerical methods converging to the solution? Which method is better to use.
Justify your answer.

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

Step: 3

blur-text-image

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

OpenStack Trove

Authors: Amrith Kumar, Douglas Shelley

1st Edition

1484212215, 9781484212219

Students also viewed these Databases questions