Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 10= x =10 to a tolerance in function of at least 1010 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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

C++ Database Development

Authors: Al Stevens

1st Edition

1558283579, 978-1558283572

More Books

Students also viewed these Databases questions

Question

How do Data Types perform data validation?

Answered: 1 week ago

Question

How does Referential Integrity work?

Answered: 1 week ago