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. p that takes as input the variable x and returns as output
the result of a complicated process g(x). 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 g(x) in the interval -10x10 to a tolerance in function of at least 10-10 using mysecant from
problem 3. Recall that any .m or .p function file can be passed as an argument into another function by prefacing the
function name by a @, e.g., @ process.
Store all found unique roots in a column vector root, the corresponding tolerances in function in a column vector
tf, 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 tf and estimated relative errors
ere as well as the number of iterations needed to find each root (not stored). Confirm that these values reported by
MatlabGrader are the same as the ones you find in your own Matlab.
 On Canvas, you will find a Matlab function file process. p

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!