defining derivative function through sympy

Viewed 303

diff works with polynomials but diff(sin(x),x) gives out the error message. When I removed "from math import *" from the code, diff(sin(x),x) worked. Why is it? What of "math" crashes with symbolic differentiation of trig function?

1 Answers
Related