Assignment 2- Mat lab and octave -Numerical Analysis for Scientists-2019
1. Consider the linear system
(a) (4 marks) Starting with the zero vector, use hand calculations to perform two
iterations of Jacobi method.
(b) (3 marks) Starting with the zero vector and tolerance of 10^-6, use Matlab to
perform a maximum of 35 iterations of Jacobi method. Does it converge? If yes,
how many iterations does it take to converge?
(c) (4 marks) Starting with the zero vector, use hand calculations to perform two
iterations of Gauss-Seidel method.
(d) (4 marks) Starting with the zero vector and tolerance of 10^-6, use Matlab to
perform a maximum of 35 iterations of Gauss-Seidel method. Does it converge? If
yes, how many iterations does it take to converge?
Leave a reply