Question: TASK 3 : ( 1 5 2 5 min ) In order to approximate the root of the polynomial entered in Task 1 , create

TASK 3: (1525 min)In order to approximate the root of the polynomial entered in Task 1, create a user-defined function called FindZero.m thatapplies the Newton-Raphson method to the polynomial. This function should have three inputs: the vector of coefficientsentered in Task 1, the starting guess entered in Task 2, and the percent error that was entered in Task 2. Your functionshould repeatedly apply the Newton-Raphson method until the percent error between the two most recent iterations is lessthan the percent error entered by the user in Task 2. Determine the percent error between the two most recent iterationsusing the formula [%]=|11|100[%] Eq.2Your 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 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!