These are some types of differentiation that we will follow in this recipe:
- Numerical differentiation.
- The most basic scheme for numerical differentiation is performed with the central difference formula with uniformly spaced nodes. To maintain symmetry, an odd number of nodes is required to guarantee smaller round-off errors. An implementation of this simple algorithm is available in the scipy.misc module.
- To approximate the first and second derivatives of the polynomial function, for example, f(x) = x5 at x=1 with 15 equally spaced nodes (centered ...