Understanding linear systems
Objective: To calculate the eigenvalues, Spectral raidius and solving the system using Jacobi, Gauss Sidel and SOR method follow is the program. clear all close all clc method = 1; % USE 1 for jacobi , 2 for gauss-sidel and 3 for SOR ) A = [5 1 2; -3 9 4; 1 2 -7]; % Matrix A is given. D = diag(diag(A)); % Decomposing in diagonal…