Introduction To Numerical Methods
Introduction To Numerical Methods
Introduction To Numerical Methods
Numerical methods are the methods used to find an approximation solution to problems
the problem that have no analytical solutions.
Numerical methods are methods for solving problems on computers by numerical
calculations,
Numerical methods yield approximate results, that is results, which are close to the exact
analytical solution
To provide systematic methods for solving problems in a numerical form
Why we use Numerical Methods?
To solve problems that cannot be solved exactly
To solve problems that are difficult to manipulate or solve
What Numerical analysis?
Numerical analysis area of mathematics and computer science that creates, analyzes, and
implements algorithms for obtaining numerical solutions to the problem.
Analytic versus numerical methods
What is a numerical solution and how does such a solution differ from
an exact (true) or analytical solution?
An analytic method for solving a given mathematical problem is any
method based on rigorous mathematical analysis and whose application
leads to the true (exact) solution, also known as analytic solution.
Example 1.1
The exact solutions of the nonlinear equation
Source of error
1. Model: mathematical models are formulated to describe them and these models do not
describe them exactly and as a result errors are introduced.
2. Method (Numerical): The methods used to solve the mathematical models are often not
exact, hence errors are induced.
3. Data: There may be errors in measuring or estimating values.
4. Representation of numbers: A computer has a finite word length and so only a fixed
number of digits of a number are inserted.
5. Arithmetic: Frequently errors are introduced in carrying out operations such as addition
and multiplication.
Approximations of errors (types of errors)
Numerically computed solutions are subject to certain errors. Mainly
there are three types of errors. They are inherent errors, truncation
errors and errors due to rounding.
A. Inherent errors or experimental errors
Most of numerical computations are inexact either due to
The given data
The limitations of the computing aids.
Limitations of measuring tool
Observer reading output of tool
Due to these limitations numbers have to be rounded causing errors
called inherent errors.
These errors cannot be completely removed but can be minimized if we
select a better data and by using computing aids of higher precision.
B. Truncation errors
• Truncation error occurs when some infinite process is stopped
(truncated) to a fewer number of terms or iterations in the process. Such
errors are essentially algorithmic errors and one can predict the extent of
the error that will occur in the method.
• Specifically, the solution obtained using some numerical methods may
involve infinite processes. For instance, this is the case with all convergent
iteration methods and convergent infinite series. Since such infinite
processes cannot be carried out indefinitely, one is forced to stop (truncate)
the process and hence accept an approximate solution.
C. Round of errors
When the rational numbers like 1/3; 22/7; 5/9; 8/9 etc,
whose decimal representation involve infinite number
of digits, are involved in our calculations, we are
forced to take only a few number of digits from their
decimal expression and thus an error named round-off
error gets involved.
Rules for Rounding of numbers
While performing any algebraic operation between two or more numbers
digit unchanged;
if the discarded number is greater than half a unit in the (n+1)th place, add 1 to
if the discarded number is exactly half a unit in the (n+1)th place, leave the nth
Example
Absolute error and relative error
Here,
• Therefore, the best approximation of the number is .
Remark 2
If the number is rounded to decimal places, then
the absolute error is given by:
Significant digit of a number c is any given digit of c, except possibly for zeros to the left of the
first nonzero digit that serve only to fix the position of the decimal point. Thus, any other zero
is a significant digit of c
Numerical significant
value figures
1.2 two
0.0012 two
0.001200 four
10. two
10 one
1000 one
12300 three
12300. five
12300.0 six
Note that: Zeros are sometimes used to locate the decimal point not significant figures.
Con’t
0.00001753 4
0.0001753 4
0.001753 4
Most digital computers have two ways of representing numbers
fixed point system: represent numbers by a fixed number of
decimal places for