Ceng 375 Numerical Computations
Final
Jan 19, 2006 13.00-15.00
Good Luck!
1 (25 Pts)

\begin{displaymath}
f(x)=3*x+sin(x)- e^x
\end{displaymath}

This nonlinear equation is solved by using three methods, namely Bisection, Newton's, Muller's methods. Then, the following tables are obtained.
iteration $(x)_1$ $(x)_2$ $(x)_3$
1 0.50000000000000 0.33333333333333 0.50000000000000
2 0.25000000000000 0.36017071357763 0.35491389049015
3 0.37500000000000 0.36042168047602 0.36046467792776
4 0.31250000000000 0.36042170296032 0.36042169766326
5 0.34375000000000 0.36042170296032 0.36042170296032

iteration $(f(x))_1$ $(f(x))_2$ $(f(x))_3$
1 3.3070e-01 -1.0000e+00 3.3070e-01
2 -2.8662e-01 -6.8418e-02 -1.3807e-02
3 3.6281e-02 -6.2799e-04 1.0751e-04
4 -1.2190e-01 -5.6252e-08 -1.3252e-08
5 -4.1956e-02 -6.6613e-16 2.2204e-16
i
If the exact value is given as $0.36042170296032$, fill the following tables (use scientific notation as %12.4e, see the table above);
iteration $Error_1$    $Error_2$    $Error_3$   
1      
2      
3      
4      
5      
$Error Ratio_1$ $Error Ratio_2$ $Error Ratio_3$
     
     
     
     
     
ii
Analyze the obtained tables. Is the convergence sustained for the each methods? For the sustained ones; at which iteration and why?














iii
What can you say about the speed of convergences for each method?









iv
By using your answers for the previous items, fill the following table. You should explain your decision.
  $Method_1$    $Method_2$    $Method_3$   
Name      










v
Which method is the best one? Why?
2 (25 Pts) Answer the following questions, choose only 5 of them.
vi
Describe the truncation error and round-off error. Give example.
vii
What is the ill-conditioned system?
viii
What information can be obtained from the determinant of a matrix?
ix
Compare the Gaussian elimination and Gauss-Jordan methods, briefly.
x
Why do we need pivoting (partial pivoting) while solving sets of equations by elimination methods? Can we skip pivoting and under which circumstances?
xi
What does singularity mean for a matrix? Make a comparison of singular and nonsingular matrices.
xii
What information can be obtained from the condition number of a matrix?
xiii
What are the differences between the interpolation and curve fitting?
3 (20 Pts) For the given data points;

\begin{displaymath}
\begin{array}{rr}
x & y \\ \hline
2.1 & -12.4 \\
4.1 & 7.3 \\
7.1 & 10.1 \\
\end{array}\end{displaymath}

  1. Write out the Lagrangian polynomial from this table
    xiv
    confirm that it reproduces the $y$'s for each $x$-value.
    xv
    interpolate with it to estimate $y$ at $x=3$.
    xvi
    extrapolate with it to estimate $y$ at $x=8$.
  2. Suppose in previous item that the $y$-value for $x=4.1$ is mistakenly entered as $7.2$ rather than $7.3$. Repeat the previous item with this incorrect value. How much difference does this make?
  3. Expand the Lagrangian polynomials in the previous items to get the quadratics in the form $ax^2+bx+c$. How different are the values for $a$,$b$, and $c$?
4 (30 Pts) Each 15 points.
  1. Write the expression to economize the the Maclaurin series for $e^{2x}$ with the precision 0.008 by using Chebyshev polynomials. Do not perform the calculation.
  2. Fourier series
    xvii
    Find the Fourier coefficients for $f(x)=x^2-1$ if it is periodic and one period extends from $x=-1$ to $x=2$. Do not evaluate the integrals.
    xviii
    Write the Fourier series expansion for this function up to $3^{rd}$ term.


2006-09-28