File Exchange

image thumbnail

Secant method

version 1.0.11 (1.28 KB) by Manotosh Mandal
Matlab code for secant method

108 Downloads

Updated 14 Sep 2019

View Version History

View License

In numerical analysis, the secant method is a root-finding algorithm that uses a succession of roots of secant lines to better approximate a root of a function f. The secant method can be thought of as a finite-difference approximation of Newton's method. See for the details: http://mathworld.wolfram.com/SecantMethod.html

Example:
Enter left point of interval 2

Enter right point of interval 3

Enter the error 0.001

The root is 2.707 >>

Cite As

Manotosh Mandal (2020). Secant method (https://www.mathworks.com/matlabcentral/fileexchange/72481-secant-method), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

works perfectly- thank you

Brad Haddin

MATLAB Release Compatibility
Created with R2019a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!