That's exactly what I needed. Thanks!
On Tue, Jan 27, 2015 at 7:14 PM, Aaron Meurer wrote:
> Use expression.doit(). simplify() ought to be doing this as well (
> https://github.com/sympy/sympy/pull/2936 and
> https://github.com/sympy/sympy/issues/6399).
>
> Aaron Meurer
>
> On Mon, Jan 26, 2015
Use expression.doit(). simplify() ought to be doing this as well (
https://github.com/sympy/sympy/pull/2936 and
https://github.com/sympy/sympy/issues/6399).
Aaron Meurer
On Mon, Jan 26, 2015 at 10:58 PM, almog yalin wrote:
> I'm trying apply the following substitution a(x) = c * b(x) into a'(x)
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
>