
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A programming project to calculate the derivative of a continuous function at a given point using the difference quotient method. The project involves writing a matlab function, myowndydx, that takes the function, the point at which the derivative is desired, and the step size as inputs and returns the estimated value of the derivative. The document also includes instructions for testing the function and using comments and disp statements for debugging.
Typology: Assignments
1 / 1
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