Consider the system Ağ= b given by -1 4 ܘ ܠܙ ܘ ܘ ܕ . ܘ ܘ ܠܙ ܓ ܗ = 0 0 0 (1) C4 0 -1 (1) Create a MATLAB script that im
-
- Site Admin
- Posts: 899559
- Joined: Mon Aug 02, 2021 8:13 am
Consider the system Ağ= b given by -1 4 ܘ ܠܙ ܘ ܘ ܕ . ܘ ܘ ܠܙ ܓ ܗ = 0 0 0 (1) C4 0 -1 (1) Create a MATLAB script that im
(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)