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

Assignment # 3

This document contains an assignment for a numerical analysis course. It includes 5 questions involving solving systems of equations using various numerical methods like Gauss elimination, Jacobi iteration, Gauss-Seidel iteration and LU decomposition. It also involves constructing interpolating polynomials using the Newton divided difference formula.

Uploaded by

arif ali
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)
168 views2 pages

Assignment # 3

This document contains an assignment for a numerical analysis course. It includes 5 questions involving solving systems of equations using various numerical methods like Gauss elimination, Jacobi iteration, Gauss-Seidel iteration and LU decomposition. It also involves constructing interpolating polynomials using the Newton divided difference formula.

Uploaded by

arif ali
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

Numerical Analysis

Instructor: Dr.M.Imtiaz
Assignment # 3
Due on: 2nd November, 2016.

Q#1. Use partial pivoting, Gauss elimination to solve the following system of equations.

𝜋𝑥1 − 𝑒𝑥2 + √2𝑥3 − √3𝑥4 = √11


3
𝜋 2 𝑥1 + 𝑒𝑥2 − 𝑒 2 𝑥3 + 𝑥4 = 0
7
√5𝑥1 − √6𝑥2 + 𝑥3 − √2𝑥4 = 𝜋
1
𝜋 3 𝑥1 + 𝑒 2 𝑥2 − √7𝑥3 + 𝑥4 = √2
9
Q#2. Solve with (a) Jacobi & (b) Gauss Seidel while tolerance is 10−2, using 𝒙(0) = 𝟎.
4𝑥1 + 𝑥2 + 𝑥3 + 𝑥5 = 6
−𝑥1 − 3𝑥2 + 𝑥3 + 𝑥4 =6
2𝑥1 + 𝑥2 + 5𝑥3 − 𝑥4 − 𝑥5 = 6
−𝑥1 − 𝑥2 − 𝑥3 + 4𝑥4 =6
2𝑥2 − 𝑥3 + 𝑥4 + 4𝑥5 = 6
Q#3. Compute (a) the determinants & (b) inverse by LU decomposition method of the following
matrices:
1 1 2 1
2 −1 2 0
1. [ ]
3 4 1 1
−1 5 2 3

1 2 3 4
2 1 −1 1
2. [ ]
−3 2 0 1
0 5 2 6
Q#4. Use LU decomposition to solve the following system of equations.
1 1 1
1. 𝑥 + 2 𝑥2 − 4 𝑥3 = 1
3 1

1 2 3
𝑥1 + 𝑥2 + 𝑥3 = 2
5 3 8

2 2 5
𝑥1 − 𝑥2 + 𝑥3 = −3
5 3 8

2. 2.121𝑥1 − 3.460𝑥2 + 5.217𝑥4 = 1.909


5.193𝑥2 − 2.197𝑥3 + 4.206𝑥4 = 0
5.132𝑥1 + 1.414𝑥2 + 3.141𝑥3 = −2.101
−3.111𝑥1 − 1.732𝑥2 + 2.718𝑥3 + 5.212𝑥4 = 6.824

Q#5. Use the Newton Divided Difference formula to construct interpolating polynomials of
degree 2 and degree 3 for the following data. Approximate the specified value using each of the
polynomials.
1. 𝑓(4.25) 𝑖𝑓 𝑓(0) = 0.3678, 𝑓(2.5) = 9.4816, 𝑓(3.7) = 22.2797, 𝑓(4) =
28.0855, 𝑓(5.3) = 84.2997
2. 𝑓(0.24) 𝑖𝑓 𝑓(0.1) = 0.31822, 𝑓(0.3) = 0.60172, 𝑓(0.6) = 1.20659, 𝑓(0.8) =
1.91842

You might also like