Bisection and Falsi
Bisection and Falsi
|€a|=
If f(XL)*f(Xm) > 0 ; XL = Xm and XR = XR
If f(XL)*f(Xm) = 0 ; the the root is Xm
Problem (20H)^5/3
(0.471405) -5
(20 + 2H)^2/3
Solution
Assume: XL = 0.5 ; XR = 1.5
Iteration XL XR Xm
1 0.5 1.5 1
2 0.5 1 0.75
3 0.5 0.75 0.625
4 0.625 0.75 0.6875
5 0.6875 0.75 0.71875
6 0.6875 0.71875 0.703125
7 0.6875 0.703125 0.6953125
8 0.6953125 0.703125 0.69921875
9 0.69921875 0.703125 0.701171875
10 0.701171875 0.703125 0.7021484375
11 0.7021484375 0.703125 0.7026367188
12 0.7021484375 0.7026367188 0.7023925781
13 0.7021484375 0.7023925781 0.7022705078
14 0.7022705078 0.7023925781 0.702331543
15 0.702331543 0.7023925781 0.7023620605
16 0.7023620605 0.7023925781 0.7023773193
17 0.7023773193 0.7023925781 0.7023849487
18 0.7023849487 0.7023925781 0.7023887634
19 0.7023887634 0.7023925781 0.7023906708
20 0.7023906708 0.7023925781 0.7023916245
21 0.7023916245 0.7023925781 0.7023921013
22 0.7023921013 0.7023925781 0.7023923397
23 0.7023923397 0.7023925781 0.7023924589
24 0.7023924589 0.7023925781 0.7023925185
25 0.7023925185 0.7023925781 0.7023925483
Answer X = 1.3247
Xm(new) - Xm(old) XL + XR
Xm =
Xm(new) 2
BISECTION METHOD
Xnew = 0.7022928
R) < 0 ; XL = XL and XR = Xn
R) > 0 ; XL = Xn and XR = XR
XR) = 0 ; the the root is Xn
Yn or f(Xn) f(XL)f(XR)
-1.489172752 -19.23836435
1.2351681917 7.445863758
-0.070823505 -1.839378815
-0.002912341 -0.08747894
-0.000119022 -0.003597232
-4.86301E-06 -0.000147013
-1.98691E-07 -6.00664E-06
-8.11802E-09 -2.45417E-07
-3.31682E-10 -1.00271E-08
-1.35518E-11 -4.09682E-10
-5.54223E-13 -1.67388E-11
-2.13163E-14 -6.84559E-13
0 -2.63292E-14
0 0