Professional Documents
Culture Documents
Numbers and Errors: Approximation
Numbers and Errors: Approximation
Numbers and Errors: Approximation
Numerical analysis is widely used by engineers and scientists to solve their problems. A major
advantage for numerical analysis is that a numerical answer can be obtained even when a problem
has no analytical solution. However, result from numerical analysis is an
approximation, in general.
which can be acquired as desire. The reliability of the numerical result will depend on an error
estimate or bound, therefore the analysis of error and the sources of error in numerical methods
is also a critically important part of the study of numerical analysis.
1.2 REPRESENTATION OF NUMBERS
There are two kinds of numbers, exact and approximate numbers. Examples of exact numbers
are
1, 2, 3, , 2 , T, e etc. Approximate number is those that represents a number to
a certain degree of accuracy. Thus, an approximate value of t is 3.1416.
In the usual decimal system of representation, any positive real number x may be written as
X=Tnn-1 1o-1'-2
where each r, takes one of he values of 0, 1, 2, .,9 and r, #0. This representation is known as fixed
point representation. There is another type of representation, called floating point representation.
In this representation, any positive real number x may be written.as
X = 0.s_S_ . S_mX 10°
where each , takes one of the values of 0, 1, 2, .., 9 and s #0. Here x is said to have m significant
digits, wheres is the first significant digit or first significant figure, s.g is the second significant
digit and so on. The fraction s 2 . is called mantissa and the integer n is called exponent.
For example, the numbers 2.135, 0.6046 contain four significant digits, but the number 0.0044 has
because 0.0044 44 x 102.
significant digits,
=
two
The exponent n is limited to a range < n< L. During the calculation, if some computed
number has an exponent n > L then we say, the memory overflow or if n <1, we say the memory
underflow
In the case of overflow, computer will usually produce meaningless results or simply prints the
to such a calculation is not a number. The
symbol NaN, which means, the quantity obtained due
underflow is less serious because in this case, a computer will simply consider the number as zero.
mm1. 'o-'-2
() (n1) has one of the values 6, 7, 8, 9, then the round off number is
"
1 ) , tollowed by al least one nonzero digit, then the round off number is
m-1.. F1"o:-1'2 . ( t1)
(iv (n1) and r(n ) is the last nonzero digit, then the round off number is
m m 1 . "'u-1'-2 . (r,, + 1) if r_ is odd
or, mm-1.. "1'o-1'-2 . n if r , is even
Moreovet, if x" is the rounding off value of x up to n decimal places, then we can say that x is
the approximate value ofx correct up to n decimal places and x =x + e10- where - ses
For this
-19.0-
calculation. the truncation
(iii) Round off
Error: ihis ertor
s
error arises due to
x-x errot
utalon tor
rounding off the numbers during numerica
rounding o
example. a number like may be represented as 0.9
ouna ot efror
in this case
|-0.3333. Then there are other numbers that
ca
not be
Tepresented exactly. For example, and
in calculation.
T are numbers that need to be
apprun
(6) Loss of
Significance: Loss of sienificance occurs when two nearly equal numbers
subtracted to produce a result
much smaller than either of the
are
1s that the
number of significant original numbers. Ihe eect
Theretore
X
y losses five significant figures
-
(i) Absolute Error If x is a true value of a quantity and x* is the approximate value, then
E = |x - x| is called the absolute error. 'The unit of exact or unit of approximate values
FEp
of units.
x 100% is called the percentage error. The percentage error is also independent
10-4.
- x =0.000034 x