Question: Write a MatLab function (IncNR) combining the capabilities of both the Incremental Search Method and the Newton Raphson method to find all the roots in
Write a MatLab function (IncNR) combining the capabilities of both the Incremental Search Method and the Newton Raphson method to find all the roots in a given function. Picture posted.
Write a MATLAB function (IncNR) combining the capabilities of both the Incremental Search Method and the Newton-Raphson Method to find all the roots in a given function XR, err, n. E In xb, ed) Inputs: AF anonymous function. xb initial guess x bracket IxL xU], where xL lower x and xU upper x ed desired error Outputs: xR vector of roots err vector of errors corresponding to the roots n -vector of the number of iterations Suggested Steps: 1. Use the Incremental Search Method to identify the number of roots and the brackets 2. Use the Newton-Raphson Method in each of the brackets starting at either the lower domain or the upper domain Write a MATLAB function (IncNR) combining the capabilities of both the Incremental Search Method and the Newton-Raphson Method to find all the roots in a given function XR, err, n. E In xb, ed) Inputs: AF anonymous function. xb initial guess x bracket IxL xU], where xL lower x and xU upper x ed desired error Outputs: xR vector of roots err vector of errors corresponding to the roots n -vector of the number of iterations Suggested Steps: 1. Use the Incremental Search Method to identify the number of roots and the brackets 2. Use the Newton-Raphson Method in each of the brackets starting at either the lower domain or the upper domain
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
