Secant method
Version 1.0.12 (1,37 KB) von
Dr. Manotosh Mandal
Matlab code for the secant method. The details of the method and also codes are available in the video lecture given in the description.
For details of the method and also coding watch the lecture: https://youtu.be/GrrlTRuC4k0
Example:
Enter the function f(x): inline('x*x*x-4*x-9')
Enter left point of interval 2
Enter right point of interval 3
Enter the error 0.001
x0 x1 f(x0) f(x1)
2.0000 3.0000 -9.0000 6.0000
3.0000 2.6000 6.0000 -1.8240
2.6000 2.6933 -1.8240 -0.2372
2.6933 2.7072 -0.2372 0.0120
2.7072 2.7065 0.0120 -0.0001
The root is 2.707 >>
Zitieren als
Dr. Manotosh Mandal (2025). Secant method (https://www.mathworks.com/matlabcentral/fileexchange/72481-secant-method), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Erstellt mit
R2019a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxTags
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.12 | The details of the method and also codes are available in the video lecture given in the description. |
||
1.0.11 | Method details with example. |
||
1.0.1 | Matlab code for secant method with example. |
||
1.0.0 |