Professional Documents
Culture Documents
METHODS
Stream – CSE
NAME – Soham Chakraborty Subject – Numerical Methods
University Roll No.- 11000120032 Subject Code – OEC-IT601A
OVERVIEW
• INTRODUCTION TO ERROR
• TYPES OF ERRORS
• TRUNCATION ERROR
• ROUND-OFF ERROR
• INHERENT ERRORS
• ACCURACY AND PRECISION
• ABSOLUTE ERRORS
• RELATIVE ERRORS
• PERCENTAGE ERRORS
ERROR
• Errors in numerical methods refer to the differences between the true
solution of a mathematical problem and the solution obtained through
numerical approximation.
• When using numerical methods or algorithms and computing with finite
precision, errors of approximation or rounding and truncation are
introduced.
• It is important to have a notion of their nature and their order. A newly
developed method is worthless without an error analysis.
• Neither does it make sense to use methods which introduce errors with
magnitudes larger than the effects to be measured or simulated. On the
other hand, using a method with very high accuracy might be
computationally too expensive to justify the gain in accuracy.
TYPES OF ERRORS
• The total error of an approximation is the summation of roundoff error and truncation error. As seen from the previous sections,
truncation error decreases as step size decreases. However, when step size decreases, this usually results in the necessity for more
precise computations which consequently results in an increase in roundoff error. Therefore, the errors are in direct conflict with
one another: as we decrease one, the other increases.
• However, the optimal step size to minimize error can be determined. Using an iterative method of trying different step sizes and
recording the error between the approximation and the true value, the following graph shown in next slide will result. The
minimum of the curve corresponds to the minimum error achievable and corresponds to the optimal step size. Any error to the
right of this point (larger step sizes) is primarily due to truncation error and the increase in error to the left of this point
corresponds to where roundoff error begins to dominate. While this graph is specific to a certain function and type of
approximation, the general rule and shape will still hold for other cases.
• Therefore, Error Analysis is required on the basis of Accuracy and Precision
Accuracy and Precision