Example : Using bisection method, find the root of f(x) = xlogx - 1.2= 0.
Enter the equations: x*log10(x)-1.2
Enter first guess: 1
Enter second guess: 3
Enter the number of decimal places: 5
a b c f(c)
1.000000 3.000000 2.000000 -0.597940
2.000000 3.000000 2.500000 -0.205150
2.500000 3.000000 2.750000 0.008165
2.500000 2.750000 2.625000 -0.099786
2.625000 2.750000 2.687500 -0.046126
2.687500 2.750000 2.718750 -0.019059
2.718750 2.750000 2.734375 -0.005466
2.734375 2.750000 2.742188 0.001345
2.734375 2.742188 2.738281 -0.002062
2.738281 2.742188 2.740234 -0.000359
2.740234 2.742188 2.741211 0.000493
2.740234 2.741211 2.740723 0.000067
2.740234 2.740723 2.740479 -0.000146
2.740479 2.740723 2.740601 -0.000040
2.740601 2.740723 2.740662 0.000014
2.740601 2.740662 2.740631 -0.000013
No of iteration : 16
The root is :
2.74064
Cite As
Langel Thangmawia (2025). Bisection method (https://www.mathworks.com/matlabcentral/fileexchange/180738-bisection-method), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2024b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
