Is there a simple way of extracting the following from  a sympy expression -

expr = expr_0 + expr_1+...+expr_n

where in each expr_j (j>0) there is a factor a_j which is a symbol (in my case noncommuting). I need to extract the parts of expr_j that multiplies a_j for all the expr_1. Only one a_j is a factor in expr_j . That is if one can rewrite

expr = expr_0 + expr'_1*a_1+...+expr'_n*a_n

and then extract (expr_0,expr'_1,...,expr'_n)

--
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.

Reply via email to