Bisection method

Bisection method for solving equation
1 Download
Updated 10 Apr 2025

View License

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 (2026). Bisection method (https://uk.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 Linux
Tags Add Tags
Version Published Release Notes
1.0.1

Example added

1.0.0