\includegraphics[width=3cm]{numerical/CankayaLogo_yeni}
Çankaya University
Mcs 331 Numerical Methods
Midterm Examination
Dec 01, 2014 13.20 - 15.10
Good Luck!
\includegraphics[width=3cm]{numerical/DepartmentLogo_yeni}



NAME-SURNAME:
SIGNATURE:
ID:
DEPARTMENT:
DURATION: 110 minutes
$\diamond$ Answer all the questions.
$\diamond$ Write the solutions explicitly and clearly.
Use the numerical terminology.
$\diamond$ You are allowed to use Formulae Sheet.
$\diamond$ Calculator is allowed.
$\diamond$ 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

  1. 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 $10^{-4}$ if the starting interval is $[0,1]$?
  2. Consider the function $f(x)$, on $[0,1]$, defined by

    \begin{displaymath}
f(x) = \sqrt{x}-cos(x)
\end{displaymath}

    iii
    Describe how the secant method determine a smaller sub-interval containing a root.
    iv
    Apply the secant method to $f(x)$ twice.
  3. Consider the function:

    \begin{displaymath}
f(x) = sin(x)-4*x+2
\end{displaymath}


    Table 1: Plot of the function, $sin(x)-4*x+2$.
    \begin{table}
% latex2html id marker 76
\begin{minipage}[h]{0.6\linewidth}
\cent...
... i (Use more than four significant figures).
\end{list}\end{minipage}\end{table}


  4. Consider the linear system ($Ax=b$);

    \begin{displaymath}
A=\left[
\begin{array}{rrrr}
1 & 3 & 1 & 1 \\
2 & 5 & 2 &...
...egin{array}{r}
6 \\
2 \\
4 \\
3 \\
\end{array} \right]
\end{displaymath}

    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 $LU$ decomposition of the system.
    viii
    Repeat without any row interchanges (only for the first item). Do you get the same results? Why?
  5. Consider the linear system

    \begin{displaymath}
\begin{array}{r}
7x_1-3x_2+4x_3=6\\
-3x_1+2x_2+6x_3=2\\
2x_1+5x_2+3x_3=-5\\
\end{array}\end{displaymath}

    ix
    Solve this system with the Jacobi method. First rearrange to make it diagonally dominant if possible. Use $[0,0,0]$ as the starting vector.
    x
    Repeat with Gauss-Seidel method. Compare with Jacobi method.



Cem Ozdogan 2014-12-04