Bisection Method

Use Bisection Method

You are now following this Submission

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);

Cite As

Arthur Matlabus (2026). Bisection Method (https://www.mathworks.com/matlabcentral/fileexchange/167366-bisection-method), MATLAB Central File Exchange. Retrieved .

Tags

Add Tags

Add the first tag.

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0