The first derivative df(x)/dx of a function f(x) at a point x = x0 can be approximated

Question:

The first derivative df(x)/dx of a function f(x) at a point x = x0 can be approximated with the two-point central difference formula:
df(x)/dx = f(x0 + h)-f(x0 - h)/2h
where h is a small number relative to x0. Write a user-defined function (see Section 7.9) that calculates the derivative of a math function f(x) by using the two-point central difference formula. For the user-defined function name, use dfdx = Funder (Fun, x0), where Fun is a name for the function that is passed into Funder, and x0 is the point where the derivative is calculated. Use h = x0/100 in the two-point central difference formula. Use the user-defined function Funder to calculate the following:
(a) The derivative of f(x) = x3e2x at x0 = 0.6
(b) The derivative of f(x) = 3x/x2 at x0 = 2.5
Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: