0% found this document useful (0 votes)
38 views2 pages

Assignment 2 (MAB-103)

Uploaded by

Nishant
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)
38 views2 pages

Assignment 2 (MAB-103)

Uploaded by

Nishant
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

DEPARTMENT OF MATHEMATICS, IIT ROORKEE

MAB-103: Numerical Methods

Assignment-2 System of Linear Equations Session: 2024-25

1. Solve the following linear system by Gauss elimination, with partial pivoting (3-D place)

(i) 3y + 5z = 1.20736, 3x − 4y = −2.34066, 5x + 6z = −0.329193


(ii) x + 10y − z = 3, 10x − y + 2z = 4, 2x + 3y + 20z = 7
(iii) 8y + 2z = −7, 3x + 5y + 2z = 8, 6x + 2y + 8z = 26

2. Solve the linear system 3x + 2y + 100z = 105, − x + 3y + 100z = 102, x + 2y − z = 2 by


Gauss elimination, with scaling.

3. Apply Crout’s and Doolittle’s method to solve the following system of equations (correct
2-D)

(i) x + y + z = 1, 4x + 3y − z = 6, 3x + 5y + 3z = 4.
(ii) 3x + 2y + 4z = 7, 2x + y + z = 4, 3x + 5y + 3z = 3.
(iii) 4x + y + z = 4, x + 4y − 2z = 4, 3x + 2y − 4z = 6.

4. Apply Jacobi Method to solve the following system of equation (correct up to 2-D)

(i) 10x + 2y + z = 9, 2x + 20y − 2z = −44, − 2x + 3y + 10z = 22.


(ii) 83x + 11y − 4z = 95, 7x + 52y + 13z = 104, 3x + 8y + 29z = 71

5. Apply Gauss-Seidal Method to solve the following system of equation (correct up to 3D)
    
20 1 −2 x 17
(i)  3 20 −1 y  = −18
2 −3 20 z 25
(ii) 10x1 − 2x2 − x3 − x4 = 3
− 2x1 + 10x2 − x3 − x4 = 15
− x1 − x2 + 10x3 − 2x4 = 27
− x1 − x2 − 2x3 + 10x4 = −9
(iii) 1.4x1 + 2.3x2 + 3.7x3 = 6.5
3.3x1 + 1.6x2 + 1.3x3 = 10.3
1.5x1 + 2.9x2 + 1.1x3 = 8.8

6. Solve the linear system Ax=b given by 4x1 +3x2 = 24, 3x1 +4x2 −x3 = 30, −x2 +4x3 = 24,
taking ω = 1.25, X0 = (1, 1, 1)T correct up to 3D, using (i) The Gauss-Seidal method (ii)
SOR method with Gauss- Seidel.

7. Find the solution of the following system of equation using SOR method with Gauss-Seidal
(correct up to 3D) taking ω = 1.1, X(0) = 0;

(i) 3x1 − x2 + x3 = 1, 3x1 + 6x2 + 2x3 = 0, 3x1 + 3x2 + 7x3 = 4.

1
(ii) 10x1 − x2 = 9, − x1 + 10x2 − 2x3 = 7, − 2x2 + 10x3 = 6.

Answers:

(1) (i) (0.143, 0.692, -0.174)


(ii) (0.375, 0.289, 0.269)
(iii) (4.000, -1.000, 0.500)

(2) (1, 1, 1)

(3) (i) (1.00, 0.50, -0.50),


(ii) (2.25, -1.13, 0.63)
(iii) (1.00, 0.500, -0.500)

(4) (i) (1.00, -2.00, 3.00)


(ii) (1.06, 1.37, 1.96)

(5) (i) (1.00, -1.00, 1.00)


(ii) (1.000, 2.000, 3.000, 0.000)
(iii) (2.298, 1.975, -0.340)

(6) (i) Gauss-Seidal: (3.013, 3.989, -5.003)


(ii) SOR: (3.0000, 4.0000, -5.0000)

(7) (i) (0.035, -0.237, 0.658)


(ii) (0.996, 0.958, 0.791).

You might also like