python - Numpy/ Scipy exact derivative? -


i'm trying find function in scipy or numpy calculates exact first order derivative not finite difference (which seems method both numpy.gradient , scipy.misc.derivative use. exist?

i trying find numeric derivative several functions. rather not use sympy!

if talking symbolic differentiation, far know numpy , scipy not provide (you noticed how calculate derivative @ point).

so looks sympy option.

from sympy import * x = symbol('x') y = x**3 + 2*x + 6 d = y.diff(x) 

you can read examples


Comments