Bisection Method

Use Bisection Method
0 Downloads
Updated 3 Jun 2024

View License

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 .

MATLAB Release Compatibility
Created with R2024a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags
Version Published Release Notes
1.0.0