Bisection Method

版本 1.0.0 (1.8 KB) 作者: kunal gokhe
The bisection method is an approximation method to find the roots of the given equation by repeatedly dividing the interval.
48.0 次下载
更新时间 2021/12/22

查看许可证

Bisection Function: Used To Determine the Roots of Equation
Function : x=Bisection(f,a,b,tol,Nmax,'Display')
Input : function f, root interval [a b], Tolerance, No. of Iteration,
Display Iteration Option 'Display'
Output : Root
Example :
f=@(x) x^3-x-2;
a=1;
b=2;
tol=10^-6;
Nmax=20;
x=Bisection(f,a,b,tol,Nmax,'Display');

引用格式

kunal gokhe (2024). Bisection Method (https://www.mathworks.com/matlabcentral/fileexchange/103960-bisection-method), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2021b
兼容任何版本
平台兼容性
Windows macOS Linux
致谢

参考作品: Numerical Methods

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0