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:
plot_approx_deriv()so it uses
- Create your own functions and investigate them through plotting and calculating derivatives.
- Change the
x_valsto look at a different range or values.
- Compare our method of
plot_approx_deriv()to plotting using
i have used:
derivative_values.append(np.gradient(f, x, h))
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