Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started