Question: TASK 3 : ( 1 5 2 5 min ) In order to approximate the root of the polynomial entered in Task 1 , create
TASK : minIn order to approximate the root of the polynomial entered in Task create a userdefined function called FindZero.m thatapplies the NewtonRaphson method to the polynomial. This function should have three inputs: the vector of coefficientsentered in Task the starting guess entered in Task and the percent error that was entered in Task Your functionshould repeatedly apply the NewtonRaphson method until the percent error between the two most recent iterations is lessthan the percent error entered by the user in Task Determine the percent error between the two most recent iterationsusing the formula EqYour function will return two outputs: the final value of the root of the polynomial and the number of iterations the methodtook to converge to that value. Additionally, if during any iteration the derivative of the temperature function would equalzero, produce an error and terminate the program. From the main script, use your function to output the root of thepolynomial and number of iterations to the command window.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
