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 (2026). Bisection Method (https://ww2.mathworks.cn/matlabcentral/fileexchange/103960-bisection-method), MATLAB Central File Exchange. 检索时间: .
| 版本 | 已发布 | 发行说明 | |
|---|---|---|---|
| 1.0.0 |
