I would just use separatevars or factor on the expression to try to split it apart, and then just match against x**n*y. I can't think of any convoluted way to write x**n*y that that wouldn't work on.
Aaron Meurer On Tue, Mar 12, 2013 at 5:50 AM, Manoj Kumar <manojkumarsivaraj...@gmail.com> wrote: > I'm also not sure of the condition i.args[i] > S.Zero in the list > comprehension , theres a simplify before factor , so I guess there wouldn't > be a need of that too. > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sympy+unsubscr...@googlegroups.com. > To post to this group, send email to sympy@googlegroups.com. > Visit this group at http://groups.google.com/group/sympy?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at http://groups.google.com/group/sympy?hl=en. For more options, visit https://groups.google.com/groups/opt_out.