
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

Title : Find the derivative of a continuous function. Background To calculate the derivative of a function, f(x) at a point, x, we can use the approximation dx f x dx f x f x
Specifications Input values to the function are function, f
step size, dx Return the following in the function estimated value of the derivative of the function Conduct three separate appropriate tests in a separate mfile to see if all parts of the function are working. Use comments appropriately in the function mfile. Use comments, disp, and frprintf statements appropriately in the test mfile. Function skeleton function fp=myowndydx(f, xi, dx) ……. ……. fp= end