Numerical Methods - Lecture-02
Numerical Methods - Lecture-02
Marjia Sultana
Assistant Professor
Department of Computer Science and
Engineering
Begum Rokeya University, Rangpur
Lecture 2: Approximations and Errors in
Computing
Taxonomy of Errors
Significant digits
Significant digits are certain digits that have significance or meaning
and give more precise details about the value of the number. In order
to find out which ones are significant, we have to follow some rules:
Rule 1: Every non zero digit is significant
Example:
1. 456 has 3 significant digits
2. 68.29 has 4 significant digits
All the other rules have to do with the number zero
Significant digits (Cont…)
•
Significant digits (Cont…)
Rule 4: Zeros behind non-zero digits are sometimes significant. Two
cases for rule 4.
Case 1: When there is no decimal, Zeros behind non-zero digits are not
significant i.e. when the decimal point is not written, trailing zeros are
not considered to be significant.
Example:
1. 4000 has 1 significant digit
2. 82,700,000 has 3 significant digits
3. 341,600 has 4 significant digits
Significant digits (Cont…)
Case 2: When there is a decimal point, zeros behind non-zero digits are
significant i.e. when the decimal point is written, trailing zeros are
considered to be significant.
Example:
1. 3.50, 65.0 and 0.230 have 3 significant digits
2. 82,700,000. has 8 significant digits
Accuracy and Precision
• Accuracy: Accuracy is how close a value is to its true value. An
example is how close an arrow gets to the bull's-eye center.
The ability of the instrument to measure the accurate value is known
as accuracy.
For example, the floating point number 0.1 converts to a non-terminating binary
form. Since the number of decimal digits are limited, 0.1 suffers an error when stored
in computer memory. When arithmetic operations are performed on such numbers
over and over, the magnitude of error increases. In this example, adding the number
0.1 10 times over may not give us an exact 1.
3. Numerical Errors
Numerical Errors
Errors can arise during the process of implementation of numerical
method. Hence these are also called procedural errors. They are
classified into two – Round-off errors and Truncation errors.