bisection(f,a,b,tol​)

Bisection Method to find approximate roots of f(x)
140 descargas
Actualizado 22 ago 2016

Ver licencia

Bisection method is the simplest among all the numerical schemes to solve the transcendental equations. This scheme is based on the intermediate value theorem for continuous functions
example :
%%
% clear all
% clc
% x=-3:0.1:3;
% y=3.*x+sin(x)-exp(x);
% plot(x,y)
% grid on
%%
a=0;
b=1;
tol=0.01;
myfun=inline('3.*x+sin(x)-exp(x)');
z=bisection(myfun,a,b,tol);
the above function has two roots in between -1 to 1 and in between 1 to 2.
for 1st root we assign a=-1 ; b=1; and for 2nd root we assign a=1; b=2.
the
for any reference please visit : https://mat.iitm.ac.in/home/sryedida/public_html/caimna/transcendental/bracketing%20methods/bisection/bisection.html#problems

Citar como

N Narayan rao (2024). bisection(f,a,b,tol) (https://www.mathworks.com/matlabcentral/fileexchange/58734-bisection-f-a-b-tol), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2013a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Develop Apps Using App Designer en Help Center y MATLAB Answers.
Etiquetas Añadir etiquetas

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.0.0.0

image