Question: In matlab Newton's Method Create an m-file newtLast.m that applies Newton's Method until f(z) is below a predefined tolerance toi-ie-6. The function newtLast.m should take
In matlab Newton's Method

Create an m-file newtLast.m that applies Newton's Method until f(z) is below a predefined tolerance toi-ie-6. The function newtLast.m should take as an input z and returns the approximate root z and the number of iterations it needed to converge. Create two subfunctions f and fp in the same m-file that defines the function f(z) = z^3 - 3^z and its derivative, respectively. Calculate the number of iterations for Newton's Method to converge for the complex numbers with Real part: 200 equally spaced points between -5 and 8 Complex part: 200 equally spaced points between -8 and 8 You may want to use the Matlab command meshgrid. Visualize the number of iterations per starting point z by using the Matlab command imagesc. You may want to change the colormap settings
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
