Answered step by step
Verified Expert Solution
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 Bonus Problem bonus points for Exam Core Course Outcomes & Recall problem from exam repeated here for convenience:
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 p and m file is that the source code of the file is not visible.
Use a script to find all roots of in the interval to a tolerance in function of at least using mysecant 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 @ eg @ process."
When solving for the root near dots using the secant method with initial guesses of and and maximum iterations see posted exam solution the root is found for an acceptable tolerance in function of but the mySecant method returns a root of NaN if 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
For credit, your answer must be entirely correct.
Required submission:
Answers submitted to Canvas link Exam Bonus Problem ;
Any scores shown on Canvas for this problem before the deadline do not reflect whether your answers are correct or not correct;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started