derivative

derivative

derivative(f, x, d=0)[source]

Return the d’th derivative of f(x) at x.

Parameters
  • f (function) – The function to take the derivative of.

  • x (float) – Where to take the derivative.

  • d (int) – Which derivative to take. d=0 just evaluates the function.