Numerical calculations often replace exact mathematical values with finite representations or approximate procedures. The difference between a computed approximation and the exact value is called error. Errors may arise from approximating a mathematical process, representing numbers with limited precision, rounding intermediate results or using imperfect input data. Error analysis is essential because even small errors can accumulate or influence later calculations. Numerical approximation is therefore not complete merely when a value is calculated; its error and suitability must also be considered.
Numerical Approximation and Error
Numerical approximation produces a value close to a desired mathematical quantity, while numerical error measures the difference between the approximation and the true value.
Eₐ = |x − x*|; Eᵣ = |x − x*| / |x|, x ≠ 0
Explanation
Variables
| Symbol | Meaning |
|---|---|
Eₐ | Absolute error. |
Eᵣ | Relative error. |
x | Exact or true value. |
x* | Approximate value. |
Example or application
Using 3.14 to approximate π produces an absolute error of approximately 0.00159265.
Definition
Numerical approximation is the process of estimating a mathematical quantity using a computationally obtainable value. Numerical error is the difference between the true value and the computed approximation.
Purpose
To explain how numerical approximations are generated and how their differences from true values are measured.
Importance
Error measurement helps determine whether a numerical result is trustworthy. It is necessary for comparing methods, choosing precision and understanding the reliability of scientific calculations.
Learning Objectives
Define numerical approximation and numerical error.
Calculate absolute error.
Calculate relative error when the exact value is nonzero.
Identify common sources of numerical error.
Explain why error analysis is necessary.
Key Concepts
Numerical approximation
True value
Approximate value
Absolute error
Relative error
Error propagation
Error tolerance
Working Principle
A numerical method generates an approximate value. When the true value is known, the difference can be calculated directly. When the true value is unknown, error bounds, residuals or comparison with more accurate calculations may be used.
Process
Identify the quantity being approximated.
Obtain the numerical approximation.
Determine the true value if available.
Calculate the absolute error.
Calculate the relative error when appropriate.
Compare the error with the required tolerance.
Applications
Scientific measurement
Numerical integration
Root approximation
Engineering calculations
Computer simulation
Algorithm comparison
Worked Example
Problem
Calculate the absolute and relative errors when 2.718 is used to approximate e ≈ 2.718281828.
Steps
Exact value: x = 2.718281828.
Approximate value: x* = 2.718.
Absolute error = |2.718281828 − 2.718| = 0.000281828.
Relative error = 0.000281828 / 2.718281828.
Relative error ≈ 0.00010368.
Answer
Absolute error ≈ 0.000281828; relative error ≈ 0.00010368.
Common Misconceptions
Absolute error and relative error are not the same.
Relative error is undefined when the exact value is zero.
An approximation with a small absolute error may have a large relative error if the true value is very small.
Error can arise from the method, data, number representation and arithmetic operations.
Practice Questions
| Question | Answer |
|---|---|
Find the absolute error when 9.8 approximates 9.81. | 0.01. |
What is relative error? | The absolute error divided by the magnitude of the exact value, provided the exact value is nonzero. |
Why is error analysis important? | It helps evaluate the accuracy and reliability of numerical results. |
Key Takeaway
Every numerical approximation should be considered together with an appropriate measure or estimate of its error.
Prerequisites
SCI-MAT-014-005
SCI-MAT-014-010
Basic arithmetic
Fractions and percentages
Reference
Burden, R. L., Faires, J. D., and Burden, A. M. Numerical Analysis.
Higham, N. J. Accuracy and Stability of Numerical Algorithms.
Related Topics
SCI-MAT-014-012
SCI-MAT-014-013
SCI-MAT-014-026
SCI-MAT-014-027
Sources and verification
Sources are shown as provided in the project data. Not every source has yet been independently verified. Please report errors or missing citations.
- Source verification pending; check an authoritative textbook, university, standards body, or peer-reviewed source.