Bisection Method
Version 1.0.0 (1,79 KB) von
kunal gokhe
The bisection method is an approximation method to find the roots of the given equation by repeatedly dividing the interval.
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');
Zitieren als
kunal gokhe (2024). Bisection Method (https://www.mathworks.com/matlabcentral/fileexchange/103960-bisection-method), MATLAB Central File Exchange. Abgerufen .
Kompatibilität der MATLAB-Version
Erstellt mit
R2021b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxTags
Quellenangaben
Inspiriert von: Numerical Methods
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.0 |