Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

The Islamic University of Gaza Instructor:

Faculty of Engineering Dr. Mazen Abualtayef


Numerical Analysis ECIV 3306 TA:
Midterm Exam (28/3/2017) Eng. Mohammed Elnazli
Allowable Time: 60 Minutes Eng. Sarah Rustom

:‫الرقم الجامعي‬ :‫ة‬/‫اسم الطالب‬

CLOSE BOOK EXAM


Using of Programmable Calculators is not allowed
Keep 4 significant figures in your calculations
Show all your calculation

Question (1): [10 marks]


State the correctness of the following statements by filling your answer
(T or F) in the allocated space.
( ) 1. The major advantage of numerical analysis is that a numerical answer can
be obtained even when a problem has no “analytical” solution.

( ) 2. Precision refers to how closely individual computed or measured values


agree with each other.

( ) 3. The Number 0.054070 represents 6 significant figures.

( ) 4. If f(x) is real and continuous in the interval xl to xu and f(xl)×f(xu)>0, then


there is no roots between xl and xu to this function.

( ) 5. The Bisection method may be divergent.

( ) 6. Ill conditioned systems are those where large changes in coefficient result
in small change in solution.

( ) 7. The Jacobi method is preferred over Gauss-Seidel method due to its faster
convergence speed based on the utilization of the best available estimates
of x values.

( ) 8. Pivoting is used to solve problems of ill-conditioned system.

( ) 9. The goal of Gauss-Jordan method is to reduce the coefficient matrix to an


upper triangular matrix.

( ) 10. The bracketing methods cannot use with multiple roots.

1
Question (2): [10 marks]
a) (5 marks) Determine the real root of f(x) = 𝒆−𝒙 − 𝟑𝒙𝟐 + 𝟕𝒙 + 𝟒 using
The Newton-Raphson method to determine the root to a = 5%.
Employing initial guesses of xo = -1.

b) (5 marks) Determine the real root of f(x) = 𝒙𝟐 + 𝟓𝒙 − 𝟑 using two


iterations of The False position method to determine the root. Employing
initial guesses of Xl = 0 and Xu = 2.

2
Question (3): [10 marks]
a) (5 marks) Given the equations:
𝑥1 + 𝑥2 − 𝑥3 = −3
6𝑥1 + 2𝑥2 + 2𝑥3 = 2
−3𝑥1 + 4𝑥2 + 𝑥3 = 1
Solve by Naïve-Gauss Elimination with partial pivoting and show all steps of
the computation.

…………………………………………………………………………………………

…………………………………………………………………………………………

…………………………………………………………………………………………

…………………………………………………………………………………………

…………………………………………………………………………………………

…………………………………………………………………………………………

…………………………………………………………………………………………

…………………………………………………………………………………………

…………………………………………………………………………………………

…………………………………………………………………………………………

…………………………………………………………………………………………

…………………………………………………………………………………………

…………………………………………………………………………………………

…………………………………………………………………………………………

…………………………………………………………………………………………

…………………………………………………………………………………………

…………………………………………………………………………………………

…………………………………………………………………………………………

…………………………………………………………………………………………

3
b) (5 marks) Consider the following system of equations:
10𝑥1 + 2𝑥2 − 𝑥3 = 27
−3𝑥1 − 6𝑥2 + 2𝑥3 = −61.5
𝑥1 + 𝑥2 + 5𝑥3 = −21.5
Solve the system using Gauss-Seidel Method.
Employ guesses [x1 = 0.2, x2 = 7.5, x3 = -5.5], use just 2 iterations
and find the approximation error.

Useful Formula
𝑥𝑙 + 𝑥𝑢
Bisection method 𝑋𝑟 =
2
𝑓(𝑥𝑢 )(𝑥𝑙 − 𝑥𝑢 )
False position method 𝑋𝑟 = x𝑢 −
𝑓(𝑥𝑙 ) − 𝑓(𝑥𝑢 )
𝑓 (𝑥𝑖 )
Newton-Raphson method 𝑋𝑖+1 = x𝑖 − ′
𝑓 (𝑥𝑖 )
f (x i )(x i 1  x i )
Secant method x i 1  x i 
f (x i 1 )  f (x i )

You might also like