Bisection Method

Use Bisection Method

您现在正在关注此提交

b)use Bisection method
%c şıkkı - Bisection method
xup=3.1;
xlow=3.0;
error=1;
while abs(error)>=1e-6
xmid=(xup+xlow)/2;
error=xmid.^3-6*xmid.^2+11*xmid-6.1;
if (xup.^3-6*xup.^2+11*xup-6.1)*(xmid.^3-6*xmid.^2+11*xmid-6.1)>0
xup=xmid;
else
xlow=xmid;
end
end
fprintf('%f',xmid);

引用格式

Arthur Matlabus (2026). Bisection Method (https://ww2.mathworks.cn/matlabcentral/fileexchange/167366-bisection-method), MATLAB Central File Exchange. 检索时间: .

标签

添加标签

Add the first tag.

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

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