Tikrit University College of Engineering
Tikrit University College of Engineering
Tikrit University College of Engineering
College of Engineering
Mechanical Engineering department
Third Class
2018/2019
ϭ
Numerical Analysis
WHAT IS NUMERICAL ANALYSIS?
The study of quantitative approximations to the solutions of
mathematical problems including consideration of and bounds
to the errors involved
TWO ISSUES OF NUMERICAL ANALYSIS:
– How to compute? This corresponds to algorithmic aspects;
– How accurate is it? That corresponds to error analysis aspects
Reasons to study the numerical analysis
y Non-linear equations
y Complex behaviours
y Analytical methods may not exist to solve for the exact roots or
the exact solution
y Use of computers
• Flexibility of making changes
• Powerful software packages are available (special or general
purpose).
• IMPORTANT NOTES:
• Numerical analysis solution is always numerical.
• Results from numerical analysis is an approximation.
Ϯ
Nature of numerical problems
The field of numerical analysis explores the techniques that give
approximate solutions to such problems with the desired
accuracy.
NUMERICAL ERRORS
When we get into the real world from an ideal world and
finite to infinite, errors arise.
SOURCES OF ERRORS:
• Mathematical problems involving quantities of infinite
precision.
• Numerical methods bridge the precision gap by putting
errors under firm control.
• Computer can only handle quantities of finite precision.
TYPES OF ERRORS:
1. Truncation errors are those errors corresponding to the fact that a finite
(or infinite) sequence of computational steps necessary to produce an
exact result is “truncated” prematurely after a certain number of steps.
ϯ
• Truncation error (finite speed and time) - An example:
2. Round of errors are errors arising from the process of rounding off
during computation. These are also called chopping, i.e. discarding all
decimals from some decimals on.
• Round-off error (finite word length): All computing
devices represent numbers with some imprecision, except
for integers.
3. Inherent errors or experimental errors
• Human errors: (a) Mathematical equation/model. (b)
Computing tools/machines. (c) Error in original data. (d)
Propagated error.
Measure of errors
ϰ
Example, if ܽ = 10.52 is an approximation to a = 10.5, then
the error is ε = 0.02.
Example: Let the true value of p be 3.1415926535898 and
its approximation be 3.14 as usual. Compute the absolute
error and relative error of such an approximation.
The absolute error:
ϱ
a. If the discretized interval is getting finer and finer after
dicretizing the continuous problems, the solution is
convergent to the true solution.
b. For an iterative scheme, convergence means the iteration
will get closer to the true solution when it progresses.
ϲ
The equation has two simple roots ( -1 and -3) and a
repeated root (3) with multiplicity = 2.
Graphical Interpretation of Zeros
ϳ
No analytical solution is available for : x – e-x = 0
2. Graphical Methods
Graphical methods are useful to provide an initial
guess to be used by other methods.
3. Numerical Solutions
Finding Roots of Equations using numerical solutions
ϴ
•Newton-Raphson Method (Needs the derivative of the function.)
•Secant Method
Bracketing Methods
In bracketing methods, the method starts with an interval
that contains the root and a procedure is used to obtain a
smaller interval containing the root.
Examples of bracketing methods:
• Bisection method
• False position method
General Idea of Bracketing Methods
Open Methods
• In the open methods, the method starts with one
or more initial guess points. In each iteration, a
new guess of the root is obtained.
ϵ
• Open methods are usually more efficient than
bracketing methods.
ϭϭ
which is less than 0.0004. The iteration is therefore terminated
and the root to the required accuracy is 0.7549
Example : Use the method of iteration to find a positive root,
between 0 and 1, of the equation x ex = 1 .
Writing the equation in the form
x = e-x.