Question: On Canvas, you will find a Matlab function file process. p that takes as input the variable x and returns as output the result of
On Canvas, you will find a Matlab function file process. that takes as input the variable and returns as output
the result of a complicated process Copy the file into your working directory and use it as any other Matlab m
file. The only difference between a p and a m file is that the source code of the p file is not visible.
Find all roots of in the interval to a tolerance in function of at least using my Secant from
problem Recall that any m or p function file can be passed as an argument into another function by prefacing the
function name by a @ eg @ process.
Store all found unique roots in a column vector root, the corresponding tolerances in function in a column vector
and the corresponding estimated relative errors in a column vector ere. The length of these vectors must be the
number of unique roots you found.
Printout the values of all roots stored in root, their tolerances in function stored in and estimated relative errors
ere as well as the number of iterations needed to find each root not stored
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
