If a1 is commutative and e1 and e2 are not then

(a1*e1*e2).args_cnc() = [[a1], [e1, e2]]

and

(a1*e1*e1).args_cnc() = [[a1], [e1**2]]

is there anyway to make

(a1*e1*e1).args_cnc() = [[a1], [e1,e1]]

or in general to convert

e1**r to [e1,e1,...,e1] r-times

--
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sympy@googlegroups.com.
To unsubscribe from this group, send email to 
sympy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to