algorithm to find derivative

Dixtosa picture Dixtosa · Nov 22, 2009 · Viewed 22.4k times · Source

I'm writing program in Python and I need to find the derivative of a function (a function expressed as string).

  • For example: x^2+3*x
  • Its derivative is: 2*x+3

Are there any scripts available, or is there something helpful you can tell me?

Answer

Alex Martelli picture Alex Martelli · Nov 22, 2009

sympy does it well.