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.
