0% found this document useful (0 votes)
39 views

NUMERIC CHAPTER 1 2016

The document discusses the fundamental concepts of error estimation in numerical analysis, emphasizing the importance of approximating solutions to mathematical problems that cannot be solved exactly. It categorizes errors into inherent, truncation, computational, round-off, absolute, relative, and percentage errors, explaining their sources and implications. Additionally, it covers the representation of numbers in computers, including fixed point and floating point representations.

Uploaded by

kidefresb
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views

NUMERIC CHAPTER 1 2016

The document discusses the fundamental concepts of error estimation in numerical analysis, emphasizing the importance of approximating solutions to mathematical problems that cannot be solved exactly. It categorizes errors into inherent, truncation, computational, round-off, absolute, relative, and percentage errors, explaining their sources and implications. Additionally, it covers the representation of numbers in computers, including fixed point and floating point representations.

Uploaded by

kidefresb
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

CHAPTER ONE

Basic concepts In Error Estimation

1.1 Introduction
 Numerical Analysis is a subject that is concerned with devising methods for approximating the
solution of mathematically expressed problems.
 Such problems may each be formulated for example in terms of algebraic, transcendental
equations or ordinary differential equations or partial or integral equations.
 More often the mathematical problems cannot be solve by exact methods.
 The mathematical models ordinarily do not solve the physical problems exactly, so it is often more
appropriate to find an approximate solution.
 Generally numerical analysis does not give exact solution, instead it attempts to devise a method which
will yield an approximation differing from exactness by less than a specified tolerance.
 The efficiency of the method used to solve the given problem depends both upon the accuracy
required of the method and the ease with which it can be implemented.
 Numerical technique is widely used by scientists and engineers to solve their problems.
 A major advantage for numerical technique 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 made as
accurate as desired.
 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 technique.
Errors and Approximations in Computation
 A computer has a finite word length and so only a fixed number of digits are stored and used during
computation.
 This would mean that even in storing an exact decimal number in its converted form in the computer
memory, an error is introduced. This error is machine dependent and is called machine epsilon.
 In general, we can say that 𝑬𝒓𝒓𝒐𝒓 = 𝑻𝒓𝒖𝒆 𝒗𝒂𝒍𝒖𝒆 − 𝑨𝒑𝒑𝒓𝒐𝒙𝒊𝒎𝒂𝒕𝒆 𝒗𝒂𝒍𝒖𝒆
Approximation of Error numbers:
 Exact number: number with which no uncertainly is associated to no approximation is taken.
21 7
Example: 5, , 5 etc. are exact numbers
6

Page | 1
 Approximate number: There are numbers which are not exact.
Example: 𝑒 = 2.7182 … , √2 = 1.41421 …, etc. They contain infinitely many non-recurring digits.
 Therefore, the numbers obtained by retaining a few digits are called Approximation numbers.
Example: 𝑒 ≈ 2.718 𝑎𝑛𝑑 𝜋 ≈ 3.142
 Significant digits (Figures): are the numbers of digits used to express the number.
 The digits 1, 2, 3, … , 9 are significant digits and ′0′ is also a significant figure except when it is
used to fix the decimal point or used to fill the place of discarded digits.
Example: 5879, 0.4762 contains four significant digits, 0.00486, 0.000382 contains three
significant digits and 2.0682 contains five significant digits
1.2 Sources of Errors
 Analysis of errors is the central concern in the study of numerical analysis and therefore we will
investigate the sources and types of errors that may occur in a given problem and the subsequent
propagation of errors.
 Errors in the solution of a problem are due to the following reasons:
 To solve physical problems, mathematical models are formulated to describe them and these
models do not describe the problems exactly and as a result errors are introduced.
 The methods used to solve the mathematical models are often not exact and as a consequence errors
are introduced.
 A computer has a finite word length and so only a fixed number of digits of a number are inserted
and as a consequence errors are introduced.
1.3 Classification of Errors
 The errors induced by the sources mentioned above are classified as:
a) Inherent Errors:
 The inherent error is that quantity which is already present in the statement of the problem
before its solution.
 The inherent error arises either due to the simplified assumptions in the mathematical
formulation of the problem or due to the errors in the physical measurements of the parameters
of the problem.
 Inherent error can be minimized by obtaining better data, by using high precision computing
aids and by correcting obvious errors in the data.
 These are errors that we cannot avoid; unless the mathematical models that are formulated to
describe the physical problems are exact such errors will always be induced. Because of this
such errors are called Inherent errors.
Page | 2
b) Truncation Errors:
 The mathematical models may be formulated in algebraic or transcendental or other type of
equations. The solutions of such equations may not be solved analytically. Hence, we use
numerical methods to obtain the solutions of such equations. In the process errors will be
induced. Such errors are called truncation error (errors due to the method).
 These types of errors caused by using approximate formulae in computation or on replace an
infinite process by a finite one.
Example: The Taylor’s series formula for finite terms:
𝟏
𝒇(𝒙) = 𝒇(𝒙𝟎 ) + (𝒙 − 𝒙𝟎 )𝒇′ (𝒙𝟎 ) + 𝟐 (𝒙 − 𝒙𝟎 )𝟐 𝒇′′ (𝒙𝟎 ) + ⋯

c) Computational Errors: Computational tools have limited space to store digits, and a number with
number of the digits greater than the tools accommodation capacity will be truncated and such
errors are called computational errors.
 Using symbols we can see the classification of errors:
 Let 𝑥 denote the exact solution of the physical problem.
 Let 𝑥̃ be the solution corresponding to the given mathematical description (model).
 Let 𝑥̃𝑛 be the solution of the problem obtained from the numerical method on the assumptions that
rounding are absent.
 Let 𝑥̃𝑛 ∗ be the approximation to the solution obtained in the actual computation. Then we have:
Inherent error: 𝑒𝐼 = |𝑥̃ − 𝑥|
Error due to the method: 𝑒𝑚 = |𝑥̃𝑛 − 𝑥̃|
Computational error: 𝑒𝑐 = |𝑥̃𝑛 ∗ − 𝑥|
Then actual error induced: 𝑒 = |𝑥̃𝑛 ∗ − 𝑥|
̃𝒏 ∗ − 𝒙| ≤ |𝒙
|𝒙 ̃𝒏 ∗ − 𝒙
̃| + |𝒙 ̃| + |𝒙
̃𝒏 − 𝒙 ̃ − 𝒙| ⟹ 𝒆 ≤ 𝒆𝒄 + 𝒆𝒎 + 𝒆𝒍
 In many cases, the error is meant not the difference between the approximation and the exact but rather
certain measures of distance between them.
 Hence, if 𝒆 ≤ 𝒆𝒄 + 𝒆𝒎 + 𝒆𝒍 = Tolerance, then the numerical solution is accepted.
d) Round-off error is the quantity, which arises from the process of rounding off numbers.
 It sometimes also called numerical error.
 The process of dropping unwanted digits is called round-off.
2
Example: The number 7 can be written as 0.29, 0.286, 0.2857

 Number round-off according to the following rules:


i. Less than 5 in the (𝑛 + 1)𝑡ℎ place, leave the (𝑛)𝑡ℎ unaltered.

Page | 3
Example: 8.893 𝑡𝑜 8.89
ii. Greater than 5 in the (𝑛 + 1)𝑡ℎ place, increase the (𝑛)𝑡ℎ digit by unity.
Example: 5.3456 𝑡𝑜 5.346
iii. Exactly 5 in the (𝑛 + 1)𝑡ℎ place, increase the (𝑛)𝑡ℎ digit by unity if it is odd otherwise,
leaves it unchanged.
Example: 11.675 𝑡𝑜 11.68 and 11.685 𝑡𝑜 11.68
e) Absolute error: is the numerical difference between the true value of a quantity and its
approximate value.
 Thus if 𝑥 ′ is the approximate value of quantity 𝑥 then |𝒙 − 𝒙′ | is called the absolute error and
denoted by 𝐸𝑎 . Therefore, 𝑬𝒂 = |𝒙 − 𝒙′ |
 The unit of exact or unit of approximate values expresses the absolute error.
|𝒙−𝒙′ | 𝑬
f) Relative Error: The relative error 𝐸𝑟 defined by 𝑬𝒓 = |𝒙|
𝒂
= 𝑻𝒓𝒖𝒆 𝒗𝒂𝒍𝒖𝒆 where 𝑥 ′ is the

approximate value of quantity 𝑥.


 The relative error is independent of units.
g) Percentage error: The percentage error in 𝑥 ′ which is the approximate value of 𝑥 is given by:
|𝒙−𝒙′ |
𝑬𝒑 = 𝟏𝟎𝟎 × 𝑬𝒓 = 𝟏𝟎𝟎 × |𝒙|
.

 The percentage error is also independent of units.


Example: Find the absolute, relative and percentage errors if 𝑥 is rounded-off to three decimal
digits. Given 𝑥 = 0.005998
Solution: If 𝑥 is rounded-off to three decimal places we get 𝑥 = 0.006. Therefore,
𝐸𝑟𝑟𝑜𝑟 = 𝑇𝑟𝑢𝑒 𝑣𝑎𝑙𝑢𝑒 − 𝐴𝑝𝑝𝑟𝑜𝑥𝑖𝑚𝑎𝑡𝑒 𝑣𝑎𝑙𝑢𝑒 = 0.005998 − 0.006 = −0.000002
𝐴𝑏𝑠𝑜𝑙𝑢𝑡𝑒 𝐸𝑟𝑟𝑜𝑟 = 𝐸𝑎 = |𝑥 − 𝑥 ′ | = |𝐸𝑟𝑟𝑜𝑟| = 0.000002
|𝑥−𝑥 ′ | 𝑎𝐸 0.000002
𝑅𝑒𝑙𝑎𝑡𝑖𝑣𝑒 𝐸𝑟𝑟𝑜𝑟 = 𝐸𝑟 = |𝑥|
= 𝑇𝑟𝑢𝑒 𝑣𝑎𝑙𝑢𝑒 = 0.005998 = 0.0033344
|𝑥−𝑥 ′ |
𝑃𝑒𝑟𝑐𝑒𝑛𝑡𝑎𝑔𝑒 𝐸𝑟𝑟𝑜𝑟 = 𝐸𝑝 = 100 × 𝐸𝑟 = 100 × |𝑥|
= 100 × 0.0033344 = 0.33344
1
Remark: If the number 𝑥 is rounded to 𝑛 decimal places, then ∆𝑥 = (10−𝑛 )
2

Example: If 𝑥 = 0.51 and correct to two decimal places then ∆𝑥 = 0.005 and the relative accuracy
0.005
is given by × 100 ≅ 0.98%
0.51

Exercise:
22
1. An approximate value of 𝜋 is given by 𝑥 ′ = = 3.1428571 and its true value is 𝑥 = 3.1415926 then
7

find the absolute and relative errors.


Page | 4
2. Find the relative error of the number 8.6 if both of its digits are correct.
3. Evaluate the sum 𝑆 = √3 + √5 + √7 to four significant digits and find its absolute and relative errors.
4. Perform the following computations:
a) Exactly c) Using 3-digit round-off
b) Using 3-digit chopping d) Compute relative error in parts of (b) and (c)
1 3 3 4 1
i. (3 − 11) + 20 ii. −3
5

1.4 Computer Representation of Numbers


 Since there is a fixed space (word length) of memory in the digital computer, a given number in a
certain base must be represented in a finite space in the memory of the computer.
 This means not all digits of the number can be represented in the memory.
 There are two conventional ways of representation of data in the word length.
a) Fixed Point Representation
 Suppose that the number to be represented has 𝑛 digits. In the fixed point representation system the 𝑛
digits are subdivided into 𝑛1 and 𝑛2 where
 𝑛1 is reserved for the integral part and 𝑛2 is reserved for the fractional part of the number
 Here, whatever the value of the number is, the number 𝑛1 and 𝑛2 are fixed a priori. i.e., the
decimal point is fixed.
Example: Suppose 𝑥 = 13042 is the number to be represented.
 If 𝑛1 = 3 = 𝑛2 then 𝑥 will be represented as 𝑥̃ = 130.420 in the machine on the other hand
 if 𝑛1 = 1 and 𝑛2 = 4 then 𝑥̃ = 1.3042 and
 for 𝑛1 = 5 and 𝑛2 = 0, we get 𝑥̃ = 13042.0
b) Floating Point Representation
 Computers represent an 𝑛 −digit floating point number in base 𝛽, in general form as:
 ±(. 𝑑1 𝑑2 𝑑3 … 𝑑𝑛 ) ∗ 𝛽 where the 𝑑1 ′𝑠 are digits or bits with values from zero to 𝛽 and the whole
𝑑′𝑠 are called mantissa
  = the number base that is used
 𝑑 = an integer called the exponent
Example: 30.421 = 0.30421
⏟ ⏟ 02→𝑒𝑥𝑝𝑜𝑛𝑒𝑛𝑡
∗ 10
𝑚𝑎𝑛𝑡𝑖𝑠𝑠𝑎 𝑏𝑎𝑠𝑒

 A floating point representation is normalized if the first digit of the mantissa is different from zero.
i.e., if 0 ≤ 𝑑𝑖 ≤ 9 and 𝑑1 ≠ 0
 In computers, floating-point numbers have three parts: the sign, the fraction part often called the
mantissa and the exponent part.
Page | 5
 The three parts of the number have a fixed total length that is often 32 or 64 bits (sometimes more).
 The mantissa part uses most of these bits (23 – 52 bits) and this determines the precision, the
exponent part uses (7 – 11) bits and this number determines the range of the values.

𝑛 bits

Mantissa sign Exponent


𝑡 −bits 𝑙 −bit 𝑟 −bits

𝑛 =𝑡+𝑟+𝑙

Note: A number cannot be represented exactly if it contains more than 𝑡 bits in the mantissa.

Page | 6

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy