Assignment # 3
Assignment # 3
Assignment # 3
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 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
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