I'm trying apply the following substitution a(x) = c * b(x) into a'(x) 

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()

I was expecting to get

> c*Derivative(b(x), x)
>
> but got instead

> Derivative(c*b(x), x)
>
> Is there a way to move the coefficient c out of the derivative? 

 

-- 
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 [email protected].
To post to this group, send email to [email protected].
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.

Reply via email to