newtzero
Version 1.4.0.0 (3.38 KB) by
Matt Fig
Finds the root(s) of a function of one variable, including complex roots, using Newton's method.
NEWTZERO(f,xr,n,tol) finds roots of function f near guess xr with n iterations to tolerance tol. May find more than one root, even if guess is way off. NEWTZERO often works to find complex roots where FZERO fails. See examples in help.
The initial guess, number of iterations, and tolerance are optional arguments.
NEWTZERO finds the roots of functions of only one variable!
Please email me about bugs or other concerns. Thanks.
Cite As
Matt Fig (2024). newtzero (https://www.mathworks.com/matlabcentral/fileexchange/6924-newtzero), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2007a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- Mathematics and Optimization > Optimization Toolbox > Systems of Nonlinear Equations > Newton-Raphson Method >
Find more on Newton-Raphson Method in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.