MATLAB and Flowchart for the Function You're Creating in MATLAB
Exercise 4T:
a) Create a flowchart for the secant method.
b) Write a function [yiterations] = secantfx_x_1tolerance that finds the zero of a continuous function close to using the secant method. If the tolerance is not specified in the argument list, use the default value of 10^-6. The first argument f must be a handle to a continuous function with one real input and one real output. The next two arguments must be real numbers in the domain of f and close to a zero of.
The function should return the algorithm's best approximation to the root of the input function and the number of iterations used to compute the approximation.