Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exam 3 Bonus Problem 1 ( 4 bonus points for Exam 3 ) ( Core Course Outcomes 1 & 3 ) Recall problem 4 from

Exam 3 Bonus Problem 1(4 bonus points for Exam 3)(Core Course Outcomes 1 & 3) Recall problem 4 from exam 3, repeated here for convenience:
"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.
Use a script to 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."
When solving for the root near x=-5.65dots using the secant method with initial guesses of x(-1)=-6 and x(0)=-5 and N=30 maximum iterations (see posted exam 3 solution), the root is found for an acceptable tolerance in function of lonOK=1*10-14, but the mySecant method returns a root of x=NaN if lonOK=1*10-15 is used. Mark all answers that explain this behavior:
truncation errors
round off errors
division by zero in the secant formula
insufficient number of iterations N
For credit, your answer must be entirely correct.
Required submission:
Answers submitted to Canvas link Exam 3- Bonus Problem 1;
Any scores shown on Canvas for this problem before the deadline do not reflect whether your answers are correct or not correct;
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

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions

Question

4. How does formal communicati dili .

Answered: 1 week ago