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., π≈3.14).
- 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 ex is:
ex=1+x+2!x2+3!x3+4!x4+5!x5+…
Using the first three terms to approximate ex:
ex≈1+x+2!x2
The truncation error is the difference between the actual value and the approximation:
Truncation Error=ex−(1+x+2!x2)=3!x3+4!x4+5!x5+…
Errors are expressed as absolute or relative errors.
Absolute error (ϵa)
Measures how far a measurement is from the actual value:
ϵa=∣x−x∗∣
Where:
- x is the actual/true value.
- x∗ is the measured/approximated value.
Relative error (ϵr)
The ratio of the absolute error to the absolute value of the actual value:
ϵr=∣x∣∣x−x∗∣
Percentage relative error (ϵp):
ϵp=∣x∣∣x−x∗∣×100%
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 ϵ1=x1−x1∗ and ϵ2=x2−x2∗ be the absolute errors in approximating x1 and x2, respectively.
Addition and subtraction
The maximum absolute error in addition or subtraction is:
∣(x1±x2)−(x1∗±x2∗)∣=∣(x1−x1∗)±(x2−x2∗)∣≤∣ϵ1∣+∣ϵ2∣
Thus, the maximum absolute error in adding/subtracting two quantities is at most the sum of their absolute errors.
For n approximate quantities with absolute errors ϵk (k=1,2,...,n), the maximum absolute error is:
∑k=1n∣ϵk∣=∣ϵ1∣+∣ϵ2∣+...+∣ϵn∣
Multiplication
The absolute error in the product is:
∣x1x2−x1∗x2∗∣=∣x1x2−x1∗x2+x1∗x2−x1∗x2∗∣=∣(x1−x1∗)x2+x1∗(x2−x2∗)∣
≤∣x2ϵ1∣+∣x1∗ϵ2∣≈∣x2ϵ1∣+∣x1ϵ2∣
(since x1∗≈x1)
Division
The absolute error in the quotient is:
x2x1−x2∗x1∗=x2x2∗x1x2∗−x1∗x2=x2x2∗x1(x2+ϵ2)−(x1+ϵ1)x2=x2x2∗x1ϵ2−x2ϵ1
≈x22x1ϵ2−x2ϵ1≤∣x2∣2∣x1∣∣ϵ2∣+∣x2∣∣ϵ1∣=∣x2∣∣ϵ1∣+∣x2∣2∣x1∣∣ϵ2∣
Effects of relative errors
Let ϵr1=x1x1−x1∗ and ϵr2=x2x2−x2∗ be the relative errors.
Multiplication
The relative error in the product is:
x1x2x1x2−x1∗x2∗=x1x2x1x2−(x1−ϵ1)(x2−ϵ2)=x1x2x1x2−x1x2+x1ϵ2+x2ϵ1−ϵ1ϵ2=x1x2x1ϵ2+x2ϵ1−ϵ1ϵ2
≈x1x2x1ϵ2+x2ϵ1=x2ϵ2+x1ϵ1=∣ϵr2+ϵr1∣
≤∣ϵr1∣+∣ϵr2∣
Thus, the relative error in a product is approximately the sum of the relative errors.
Division
The relative error in the quotient is:
x2x1x2x1−x2∗x1∗=x1x2∗x1x2∗−x1∗x2⋅∣x1∣∣x2∣=x1(x2+ϵ2)x1(x2+ϵ2)−(x1+ϵ1)x2∣x1∣∣x2∣=x1x2+x1ϵ2x1ϵ2−x2ϵ1∣x1∣∣x2∣≈x2ϵ2−x1ϵ1≤∣ϵr1∣+∣ϵr2∣
Thus, the relative error in a quotient is approximately the sum of the relative errors.
Find the truncation error in terminating the series of ex for x=0.2 after the first three terms. Give the answer correct to four decimal places.
Series: ex=1+x+2!x2+3!x3+4!x4+5!x5+6!x6+...
Approximation: ex≈1+x+2!x2
Truncation error: ϵt=ex−(1+x+2!x2)=3!x3+4!x4+5!x5+...
Substituting x=0.2:
ϵt=3!(0.2)3+4!(0.2)4+5!(0.2)5+...=60.008+240.0016+1200.00032+...
≈0.001333+0.000067+0.0000026+...
≈0.00140266...
Thus, ϵt≈0.0014 (correct to four decimal places).
If the exact value is x=2.2056×10−4 and the approximated value is x∗=2.1056×10−4, find the absolute and relative errors.
Absolute error: ϵa=∣x−x∗∣=∣2.2056×10−4−2.1056×10−4∣=∣0.1×10−4∣=1×10−5
Relative error: ϵr=∣x∣∣ϵa∣=2.2056×10−41×10−5≈0.04534
Percentage relative error: ϵp=ϵr×100%≈0.04534×100%=4.534%
Given p=10.6±0.2 cm and q=25.5±0.3 cm, calculate the maximum possible error in p+q.
Sum: p+q=10.6+25.5=36.1 cm
Maximum error: 0.2+0.3=0.5 cm
Result: 36.1±0.5 cm
The lengths of two objects are 21.5±0.1 cm and 17.8±0.3 cm. Find the sum of the lengths with the limit of errors.
Sum of lengths: (21.5+17.8)±(0.1+0.3)=39.3±0.4 cm
The initial temperature is 36.4±0.3°C, and the final temperature is 63.6±0.4°C. Find the increase in temperature.
Increase in temperature: (63.6−36.4)±(0.4+0.3)=27.2±0.7°C
A silver string has mass m=10±0.1 g, length l=50±0.5 mm (5 cm), width w=10±0.2 mm (1 cm), and thickness h=2±0.1 mm (0.2 cm). Determine the error in the density.
Density: ρ=Vm=lwhm
Using logarithmic differentiation to estimate the error:
ρΔρ=mΔm+lΔl+wΔw+hΔh
ρΔρ=100.1+500.5+100.2+20.1=0.01+0.01+0.02+0.05=0.09
ρ=5×1×0.210=10 g/cm3
Δρ=0.09×10=0.9 g/cm3
The error in density is 0.9 g/cm³.
Calculate the percentage error in calculating g from T=2πgl, if l and T have errors of ±3% and ±4%, respectively.
Squaring the equation: T2=4π2gl
g=T24π2l
Using logarithmic differentiation:
gΔg=lΔl+2TΔT
Percentage error in g:
gΔg×100%=(3%+2×4%)=3%+8%=11%
Mwalimu
Unasoma somo hili? Niulize nikuelezee chochote kilichomo.
Ingia ili kumuuliza Mwalimu wa AI wa Sonza kuhusu mada hii.
Ingia ili kuulizaMajadiliano
Hakuna maswali bado