image thumbnail

Discrete Newton: Newton's method for discrete functions

version 1.0.0 (3.66 KB) by Santiago Benito
Compute the discrete Newton's and secant method with discrete data.

61 Downloads

Updated 13 Jul 2018

View License

This function is a modified Newton method that works with discrete data, i.e., computes the derivative of the data numerically. The derivative at any point is taken as the mean of the slope of the function to the right and the left.
The secant method is also programmed in the function and the user can select either of them. The code is heavily commented to make it easy to understand and modifiy. A lot of variable validation, printing and plotting is employed as well.

Cite As

Santiago Benito (2021). Discrete Newton: Newton's method for discrete functions (https://www.mathworks.com/matlabcentral/fileexchange/68170-discrete-newton-newton-s-method-for-discrete-functions), MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

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

Start Hunting!