Question: 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;
 Exam 3 Bonus Problem 1(4 bonus points for Exam 3)(Core Course

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!