Page 1 of 1

Consider the system Ağ= b given by -1 4 ܘ ܠܙ ܘ ܘ ܕ . ܘ ܘ ܠܙ ܓ ܗ = 0 0 0 (1) C4 0 -1 (1) Create a MATLAB script that im

Posted: Tue Sep 07, 2021 7:32 am
by answerhappygod
 1
1 (34.58 KiB) Viewed 285 times
Consider the system Ağ= b given by -1 4 ܘ ܠܙ ܘ ܘ ܕ . ܘ ܘ ܠܙ ܓ ܗ = 0 0 0 (1) C4 0 -1
(1) Create a MATLAB script that implements a Jacobi iteration to solve the system in Problem 2 with 7(0) = 0. The iteration stopping criterion is ||r(k) ||2 < 0.01, where pilk) is the residual at the k-th step of the iteration. Output the number of iterations you used and plot the curve of ||1(k)||2 versus k. (4 points) (2) Repeat the Problem 3 (1) using Gauss-Seidel method. (4 points)