a = sympy.Function('a')
b = sympy.Function('b')
c = sympy.Symbol('c')
x = sympy.Symbol('x')
expression = sympy.Derivative(a(x),x)
expression = expression.subs(a(x),c*b(x))
print expression.simplify()
c*Derivative(b(x), x)
Derivative(c*b(x), x)
--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/66c991ad-fc06-42f3-b46b-d096826df457%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "sympy" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sympy/Foi0UaBCmO0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAKgW%3D6%2BN%2BU5DS19LSf4bLWORL%2B_T7LnsHeK5BF_OwSM1JnE_Eg%40mail.gmail.com.