Re: Fixes the A*f(x).diff(x)*A problem (#1327)

2009-03-18 Thread Ondrej Certik
On Tue, Mar 17, 2009 at 11:53 AM, Freddie Witherden wrote: > > The patch seems fine to me. All tests pass, can confirm that it solves > the aforementioned issue. Thanks for the review, it's in. Ondrej --~--~-~--~~~---~--~~ You received this message because you a

Re: Fixes the A*f(x).diff(x)*A problem (#1327)

2009-03-17 Thread Freddie Witherden
The patch seems fine to me. All tests pass, can confirm that it solves the aforementioned issue. Regards, Freddie. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "sympy-patches" group. To post to this group, send e

[PATCH 2/2] Fixes the A*f(x).diff(x)*A problem (#1327)

2009-03-16 Thread Ondrej Certik
Before: In [1]: A = Symbol("A", commutative=False) In [2]: A*f(x).diff(x)*A Out[2]: d A⋅──(f(x))⋅A dx After: In [1]: A = Symbol("A", commutative=False) In [2]: A*f(x).diff(x)*A Out[2]: d 2 ──(f(x))⋅A dx The problem was that Derivative was not set as commutative even if f(x) is co