Hello everyone,
Be nice to my English, because i’m French
I am in the exercise 11 of Differential Calculus Limit Definition of the Derivative Exploration and i don’t understand the use of np.gradient().
Exercise 11 :
Congrats! That concludes our exploration into the limit definition of the derivative using Python. We have approximated derivatives at a point and whole derivative functions using the limit definition. If you would like to continue your exploration, here are some ideas:
- Modify
plot_approx_deriv()
so it usesnp.gradient()
.- Create your own functions and investigate them through plotting and calculating derivatives.
- Change the
h_vals
and/orx_vals
to look at a different range or values.- Compare our method of
plot_approx_deriv()
to plotting usingnp.gradient()
i have used:
derivative_values.append(np.gradient(f, x, h))
Instead of:
derivative_values.append(limit_derivative(f, x, h))
But it’s not running and i don’t understand
I hope I explained it well
Thanks in advance