Question: USE THIS FORMAT to produce this newtonh code: newtonh.m Write a variation of Newton's method that uses a numerical derivative. Its syntax is sol =

USE THIS FORMAT to produce this newtonh code:
newtonh.m
Write a variation of Newton's method that uses a numerical derivative. Its syntax is
sol = newton(f,x0,tol)
where the variables are as in newton.m. Instead of fp, you will write a subfunction that is called to compute the numerical derivative of f using the difference quotient. Set h = tol for this difference quotient.
***No credit will be given for scripts or for functions that prompt the user for input. The functions must accept arguments in the proper order as part of the function call and return outputs of the correct type. Also, do not show any intermediate calculations in the Command Window. Only the output of the function should appear.
Include headers in each of your m-files describing the basic purpose of the function, the syntax, its inputs, and its outputs. Use the included bisect.m as a template for what to include and how to format things.
 USE THIS FORMAT to produce this newtonh code: newtonh.m Write a

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!