Mada za sehemu hiiNumerical MethodMada 4
An error is the difference between an observed/approximated value and the true/actual value.
Identifying error sources and types is crucial in any measurement.
Types of errors
- Systematic errors: Result from known causes (e.g., incorrect formulas, miscalibrated devices).
- Random errors: Result from unpredictable sources (e.g., environmental conditions).
Sources of errors
Errors in calculations and measurements relate to accuracy and precision.
- Accuracy: How close a computed/measured value is to the actual value.
- Precision: How close individual computed/measured values are to each other.
Main error sources:
- Rounding-off errors: Approximations during computations due to the inability to represent true values exactly (e.g., ).
- Truncation errors: Approximations of infinite mathematical processes (e.g., terminating an iterative method or using a finite number of terms in an infinite series).
- Data uncertainty: Errors in data due to systematic or random errors in measurements.
Example of truncation error
The Maclaurin series for is:
Using the first three terms to approximate :
The truncation error is the difference between the actual value and the approximation:
Errors are expressed as absolute or relative errors.
Absolute error ()
Measures how far a measurement is from the actual value:
Where:
- is the actual/true value.
- is the measured/approximated value.
Relative error ()
The ratio of the absolute error to the absolute value of the actual value:
Percentage relative error ():
Difference between absolute and relative error
| Feature | Absolute error | Relative error |
|---|---|---|
| Definition | Difference between measured and actual value | Ratio of absolute error to actual value |
| Meaning | How large the error is | How good/bad the error is (relative to the size of the value) |
| Units | Same units as the measured quantity | Unitless (or percentage) |
Numerical computations involve a series of arithmetic operations. Understanding how errors propagate through these operations is crucial.
Effects of absolute errors
Let and be the absolute errors in approximating and , respectively.
Addition and subtraction
The maximum absolute error in addition or subtraction is:
Thus, the maximum absolute error in adding/subtracting two quantities is at most the sum of their absolute errors.
For approximate quantities with absolute errors (), the maximum absolute error is:
Multiplication
The absolute error in the product is:
(since )
Division
The absolute error in the quotient is:
Effects of relative errors
Let and be the relative errors.
Multiplication
The relative error in the product is:
Thus, the relative error in a product is approximately the sum of the relative errors.
Division
The relative error in the quotient is:
Thus, the relative error in a quotient is approximately the sum of the relative errors.
Find the truncation error in terminating the series of for after the first three terms. Give the answer correct to four decimal places.
Series:
Approximation:
Truncation error:
Substituting :
Thus, (correct to four decimal places).
If the exact value is and the approximated value is , find the absolute and relative errors.
Absolute error:
Relative error:
Percentage relative error:
Given cm and cm, calculate the maximum possible error in .
Sum: cm
Maximum error: cm
Result: cm
The lengths of two objects are cm and cm. Find the sum of the lengths with the limit of errors.
Sum of lengths: cm
The initial temperature is °C, and the final temperature is °C. Find the increase in temperature.
Increase in temperature: °C
A silver string has mass g, length mm (5 cm), width mm (1 cm), and thickness mm (0.2 cm). Determine the error in the density.
Density:
Using logarithmic differentiation to estimate the error:
The error in density is g/cm³.
Calculate the percentage error in calculating from , if and have errors of and , respectively.
Squaring the equation:
Using logarithmic differentiation:
Percentage error in :
Mwalimu
Unasoma somo hili? Niulize nikuelezee chochote kilichomo.
Ingia ili kumuuliza Mwalimu wa AI wa Sonza kuhusu mada hii.
Ingia ili kuuliza