I don't think it's possible to isolate P in this case (unless you don't mind having P**-1 in the result, but SymPy doesn't consider that to be isolated).
By the way, is solve() even non-commutative aware? Aaron Meurer On Sun, Sep 2, 2012 at 9:02 PM, Chris Smith <[email protected]> wrote: > On Mon, Sep 3, 2012 at 8:35 AM, Kjetil brinchmann Halvorsen > <[email protected]> wrote: >> I want to solve an equation with non-commutative symbols (actually >> squarematrices): >> >> A,P,R = symbols('A P R', commutative=FALSE) > > First, use False (a python boolean) instead of FALSE (an undefined > variable unless you defined it as FALSE = False). > >> >> Then: >> >> solve(R=A*P+P*A,P) >> > > The syntax is to give an expression that should be zero or an Eq > instance; you can't simply use the equal sign to do this: > > solve(R - (A*P+P*A), P) > >> but this only gives some involved error? >> > > If you do the above you will get no error (and also no answer because > the solution for this is not implemented). What do you expect the > answer to be? > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/sympy?hl=en. > -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
