Numerically find multiple roots of a function.
As described in NUMERICAL METHODS FOR ENGINEERS 8th Edition
-
Incremental search for sign changes of function adapted from pseudocode on page 142
-
Combined with Modified False Position root finding method adapted from pseudocode on page 141
This code allows the user to enter a function of x and an interval on the x-axis.
The interval is searched for sign changes, these points are further refined yielding the roots using modified false position.
Afterwards a plot is shown of the function with the roots