6.7.4. derivative

derivative(x, y, dx=1, order=3, k=1)[source]

Find the 1-st derivative of a spline at a point.

Given a function, use a central difference formula with spacing dx to compute the n-th derivative at x0.

Parameters:
  • x
  • y
  • dx
  • order
  • k
Returns: