Numerical Solution of Non-Linear Equations (Root Finding Method)
Numerical Solution of Non-Linear Equations (Root Finding Method)
Errors
1. True Errors
Percentage Relative Error
𝑡𝑟𝑢𝑒 𝑣𝑎𝑙𝑢𝑒−𝐴𝑝𝑝𝑟 𝑉𝑎𝑙𝑢𝑒
𝜀𝑡 = | |*100
𝑇𝑟𝑢𝑒 𝑣𝑎𝑙𝑢𝑒
Absolute Error |𝑡𝑟𝑢𝑒 𝑣𝑎𝑙𝑢𝑒 − 𝑎𝑝𝑝𝑟𝑜𝑥𝑖𝑚𝑎𝑡𝑒 𝑣𝑎𝑙𝑢𝑒|
2. Estimated Error
𝑥3𝑛𝑒𝑤 −𝑥3𝑜𝑙𝑑
Percentage Relative Error 𝜀𝑎 = | |*100
𝑥3𝑛𝑒𝑤
Absolute Error |𝑥𝑛𝑒𝑤
3 − 𝑥𝑜𝑙𝑑
3 |
Closed Method
Bisection Method
Formula 𝑥1 + 𝑥2
𝑥3 =
2
Solution:
𝒙𝟏 +𝒙𝟐
𝑥1 = 0 , 𝑓 (𝑥1 = 0) = -2 𝒙𝟑 =
2
𝑥2 = 1, 𝑓 (𝑥2 ) = 4
𝜺𝒂
Iterations 𝒙𝟏 𝒙𝟐 𝒙𝟑 f(𝒙𝟑 ) f(𝒙𝟏 )f(𝒙𝟑 ) 𝑥3𝑛𝑒𝑤 −𝑥3𝑜𝑙𝑑
𝜀𝑎 = | |*100
𝑥3𝑛𝑒𝑤
-0.75<0
0 0 1 0.5 --
𝒙𝟐 = 𝒙𝟑
1.46876>0
1 0 0.5 0.25 100%
𝒙𝟏 = 𝒙𝟑
0.13913>0
2 0.25 0.5 0.375 33.3%
𝒙𝟏 = 𝒙𝟑
-0.01642<0
3 0.375 0.5 0.4375 14.285%
𝒙𝟐 = 𝒙𝟑
0.00994>0
4 0.375 0.4375 0.40625 7.692%
𝒙𝟏 = 𝒙𝟑
𝜺𝒂
Iterations 𝒙𝟏 𝒙𝟐 𝒙𝟑 f(𝒙𝟑 ) f(𝒙𝟏 )f(𝒙𝟑 ) 𝑥3𝑛𝑒𝑤 −𝑥3𝑜𝑙𝑑
𝜀𝑎 = | 𝑥3𝑛𝑒𝑤
|*100
1.080604 >0
0 0 2 1 -0.540302 --
𝒙𝟏 = 𝒙𝟑
-1.244998<0
1 1 2 1.5 2.304263 33.33%
𝒙𝟐 = 𝒙𝟑
-0.344606<0
2 1 1.5 1.25 0.637803 20%
𝒙𝟐 = 𝒙𝟑
0.0039701>0
3 1 1.25 1.125 -0.007348 11.11%
𝒙𝟏 = 𝒙𝟑
-0.002209<0
4 1.125 1.25 1.1875 0.300581 5.263%
𝒙𝟐 = 𝒙𝟑