0% found this document useful (0 votes)
5 views

MTP290 Tut5

The document outlines a problem set focused on implementing and solving linear systems using the Gauss-Jacobi and Gauss-Seidel methods in MATLAB. It includes specific linear equations to solve, instructions for convergence checks, and complexity analysis for Gaussian elimination and related algorithms. The document emphasizes the need for scripts and iterative methods with defined tolerances for accuracy.

Uploaded by

netflix63894
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

MTP290 Tut5

The document outlines a problem set focused on implementing and solving linear systems using the Gauss-Jacobi and Gauss-Seidel methods in MATLAB. It includes specific linear equations to solve, instructions for convergence checks, and complexity analysis for Gaussian elimination and related algorithms. The document emphasizes the need for scripts and iterative methods with defined tolerances for accuracy.

Uploaded by

netflix63894
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

MTP 290-Problem Set 5

1. Write a MATLAB script for implementing the Gauss-Jacobi method to solve the system
Ax = b, where A is a non-singular matrix.
2. Solve the following linear system by Gauss-Jacobi method, with tolerance = 10−4 in the l∞
norm. Choose initial guess as x1 = 1/2 = x2
10x1 + x2 = 11
x1 + 10x2 = 11.

3. Solve the following linear system by Gauss Jacobi method and choose initial guess as x1 =
x2 = x 3 = 0
4x1 + x2 − x3 = 3
2x1 + 7x2 + x3 = 19
x1 − 3x2 + 12x3 = 31.

4. Use Gauss-Jacobi Method to solve (Generate any initial guess in your programme)
5x1 − 2x2 + 3x3 + 6x5 = −1
−3x1 + 9x2 + x3 − 2x4 + 7.4x5 = 2
2x1 − 1x2 − 7x3 + x4 + 6.7x5 = 3
4x1 + 3x2 − 5x3 + 7x4 + 9x5 = 0.5
2x1 + 3.5x2 + 6.1x3 − 4x4 − 8.1x5 = 3.1.

5. Use Gauss-Jacobi Iterations to attempt solving the linear system


x1 + 2x2 + 3x3 = 5
2x1 − x2 + 2x3 = 1
3x1 + x2 − 2x3 = −1.

(Whether the method converges?)


6. Write a MATLAB script for implementing the Gauss-Seidel method to solve the system
Ax = b, where A is a non-singular matrix.
7. Redo the problem 5 and 6 using Gauss-Seidel method, with tolerance = 10−4 in the l∞ norm.
8. Use Gauss-Seidel Iterations to attempt solving the linear system
2x1 + 8x2 + 3x3 + x4 = −2
2x2 − x3 + 4x4 = 4
7x1 − 2x2 + x3 + 2x4 = 3
−x1 + 5x3 + 2x2 = 5.
(Whether the method converges?)

1
9. Show that the complexity of algorithm for Gaussian Elimination method is O(n3 ).
3
10. Show that the Gauss-Jordan method requires ( n2 + n2 − n2 ) multiplications/divisions and
3
( n2 − n2 ) additions/subtractions.
11. Show that complexity of Gauss-Jacobi algorithm is O(n2 ).
12. Show that complexity of Gauss-Seidel algorithm is O(n2 ).

You might also like