Question: MATLAB and flowchart for the function you're creating in MATLAB Exercise 4 (a) Create a flowchart for the secant method. (b) Write a function [y,
MATLAB and flowchart for the function you're creating in MATLAB
Exercise 4 (a) Create a flowchart for the secant method. (b) Write a function [y, iterations] = secant(f, x-, x-1, tolerance) that finds the zero of a continuous function close to 21 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 off and close to a zero off 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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
