Çankaya University
Mcs 331 Numerical Methods
Midterm Examination
Dec 01, 2014 13.20 - 15.10
Good Luck!
NAME-SURNAME:
SIGNATURE:
ID:
DEPARTMENT:
DURATION: 110 minutes
Answer all the questions.
Write the solutions explicitly and clearly.
Use the numerical terminology.
You are allowed to use Formulae Sheet.
Calculator is allowed.
You are not allowed to use any other
electronic equipment in the exam.
Question
Grade
Out of
1A
10
1B
10
2
20
3
20
4
30
5
20
TOTAL
110
A
) An engineer runs the same FORTRAN program on two different computers, a PC and a UNIX Workstation. Neither system produces any error messages, but the resulting outputs differ by several orders of magnitude more than machine precision. What, if any, reasonable explanations are there for this phenomenon?
B
) How many iterations of bisection will be required to attain an accuracy of if the starting interval is ?
Consider the function , on , defined by
iii
Describe how the secant method determine a smaller sub-interval containing a root.
iv
Apply the secant method to twice.
Consider the function:
Table 1:
Plot of the function, .
Consider the linear system ();
v
Solve this system by Gaussian elimination with pivoting. How many row interchanges are needed?
vi
What is the value of determinant?
vii
Obtain the decomposition of the system.
viii
Repeat without any row interchanges (only for the first item). Do you get the same results? Why?
Consider the linear system
ix
Solve this system with the Jacobi method. First rearrange to make it diagonally dominant if possible. Use as the starting vector.
x
Repeat with Gauss-Seidel method. Compare with Jacobi method.