findZero

Uses bisection and newtons method to find all function zeros on a given interval.
5 Downloads
Updated 15 Sep 2023

View License

% Written By: Ian Ammerman
% Written: 9/15/23
%
% findZero(func,a,b) finds the root of func on the interval a,b. If multiple
% roots are present on the interval, new sub-intervals are defined and
% solved individually. The bi-section method is employed to a tolerance of
% 10^-2 and Newton's method is used for final convergence to 10^-6
%
% findZero(func,a,b,'ShowFigure',true) plots the function over the given
% interval along with the located roots.
%
% findZero(func,a,b,'Tolerance',tol) defines the tolerance for Newton's
% method convergence. Default is 10^-6

Cite As

Ian Ammerman (2026). findZero (https://nl.mathworks.com/matlabcentral/fileexchange/135452-findzero), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2023b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags
Version Published Release Notes
1.0.0