Bisection's method

버전 1.1.0.0 (1.73 KB) 작성자: Andrea Cirillo
It's a matlab function that finds a regular real function's zero with the bisection's method.
다운로드 수: 2.7K
업데이트 날짜: 2010/12/28

라이선스 보기

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 (2024). Bisection's method (https://www.mathworks.com/matlabcentral/fileexchange/29838-bisection-s-method), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2010b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Optimization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.1.0.0

Update code

1.0.0.0