Question: Problem 4 (programming): Create a MATLAB function named mynewton.m to estimate the root for any arbitrary function f for a given initial guess x0 and

 Problem 4 (programming): Create a MATLAB function named mynewton.m to estimate

Problem 4 (programming): Create a MATLAB function named mynewton.m to estimate the root for any arbitrary function f for a given initial guess x0 and absolute error ?. The function also takes in the maximum number of iterations, max iter, to limit the iteration cycle. Use mynewton.m template posted in homework 3 folder on TritonED as a guide to implement the method. You can construct the function in your own way. The function should return the approxi- mated root xn and the number of iterations n taken to reach the solution. Use the function mynewton.m and set max.iter to be 100 in the following exercises the root in p4a and the corresponding number of iteration in p4lb root in p4c and the corresponding number of iterations in p4d. corresponding number of iterations in p4f (a, b) Find the root of f(z)- 4x3 + 4r2 +4z -5 with o0 and e 10-12. Put (c, d) Find the root of f(x)--r+ sin(x) + 4 with zo-10-8 and ?-10-12. Put the (e, f) Repeat parts (c, d) with xo 10-7 and ? 10-12. Put the root in p4e and the

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!