Numerical Computing Final Exam Summer
Numerical Computing Final Exam Summer
Karachi
Department of Computer Science
Final Exam, SUMMER-2022
11th August, Thursday, 2022,
9:30 am – 12:30 pm
Course Code: CS-2008 Course Name: Numerical Computing
Instructor Name: Nadeem khan
Student Roll No: Section:
Instructions:
• Solve all the questions according to the sequence given in the question paper.
• Read each question completely before answering it. There are 8 questions and 2 pages.
• In order to receive full credit, you must show your all necessary work.
• Display answers correct up to 5 numbers of decimal places. Scientific calculator is allowed.
Time: 180 Minutes Max. Marks: 100
ii) Use fix point iteration method to locate roots of 𝒚 = 𝒙𝟑 + 𝒙𝟐 − 𝟏 corrected up to 5 decimal places.
𝑥 𝑓(𝑥) 𝑓’(𝑥)
1.1 9.02501
1.2 11.02318
1.3 13.46374
1.4 16.44465
𝒚′ = 𝒚𝒕𝟐 − 𝟏. 𝟏𝒚
i) Analytically
ii) Euler’s method with ℎ = 0.5
iii) fourth order RK method with ℎ = 0.5
1|P age
Question Number 4 CLO2 [5+5=10 Marks]
i) Construct the divided difference table.
ii) Estimate 𝑓(0.1).
𝑥 -0.1 0 0.2 0.3
𝑓(𝑥) 5.30 2.00 3.19 1.00
Solve following the system of equation using both Gauss siedel and relaxation method. Do four iteration
of each. (Display five decimal places).
4𝑥 + 11𝑦 − 𝑧 = 33
8𝑥 − 3𝑦 + 2𝑧 = 20
6𝑥 + 3𝑦 + 12𝑧 = 35
𝟐 𝟏 𝟒 𝒙 𝟐
𝒚
A=[𝟖 −𝟑 𝟐 ], x=[ ], b = [𝟎].
𝟒 𝟏𝟏 −𝟏 𝒛 𝟑
𝟐 −𝟏 𝟎
[−𝟏 𝟐 −𝟏]
𝟎 −𝟏 𝟐
i).Apply Power method to find the dominant Eigen value and corresponding Eigen vector up to
Three decimal places for the following matrix.
𝟒 −𝟏 𝟏
[−𝟏 𝟑 −𝟐]
𝟏 −𝟐 𝟑
2|P age
Formula Sheet
Rk method
3|P age