Bisection's method

It's a matlab function that finds a regular real function's zero with the bisection's method.

您现在正在关注此提交

function p_min=bisection(func,int,iter,tol_x,tol_f)
% It calculates the zero of a regular real function with one variable.
% p_min is the solution and represents the abscissa's value of the zero.
% The input variables are:
% -func: it's a string that represents the function in the variable 'x'.
% -int: it's a vector with two elements. The first is the minor bound, the
% second is the greater bound.
% -iter: it's the max number of iteration.
% -tol_x: it's the tolerance on the successive steps.
% -tol_f: it's the tolerance on the successive function's values.

It plots the function's and the solution's trend.

引用格式

Andrea Cirillo (2026). Bisection's method (https://ww2.mathworks.cn/matlabcentral/fileexchange/29838-bisection-s-method), MATLAB Central File Exchange. 检索时间: .

致谢

启发作品: Bisection Method Root Finding

类别

Help CenterMATLAB Answers 中查找有关 Optimization 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

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

Update code

1.0.0.0