Introduction : Bisection method example to solve Question : Bisection method example to solve \[\frac{1}{\sqrt{x}}+2\cdot\log_{e}\left(10^{-4}+2\cdot\frac{10^{-4}}{\sqrt{x}}\right)\] Solution: \[\frac{1}{\sqrt{x}}+2\cdot\log_{e}\left(10^{-4}+2\cdot\frac{10^{-4}}{\sqrt{x}}\right)\] Bisection method fr=(fl+fu)/2 % error=|(f_r-f_exact)/f_exact |*100% iflF(fl)fuF(fu)frF(fr)% error00.02-5.9146503390.03-7.588210.025-6.86878259.195410.02-5.9146503390.025-6.868780.0225-6.42884223.2759
Posted inMechanical Engineering