Bisection method

Bisection method for solving equation

您现在正在关注此提交

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

引用格式

Langel Thangmawia (2026). Bisection method (https://ww2.mathworks.cn/matlabcentral/fileexchange/180738-bisection-method), MATLAB Central File Exchange. 检索时间: .

标签

添加标签

Add the first tag.

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.0.1

Example added

1.0.0