Updates: Cc: ondrej.certik Comment #15 on issue 1219 by fabian.seoane: .coeff() fails for -x/8 + x*y http://code.google.com/p/sympy/issues/detail?id=1219
I think this patch fixes it. Still a couple of things: - there must be a better way to know if an expression is multiplied by a constant than x.as_coeff_terms()[0] - calling collect for this is to overkill. collects does a lot of work that is irrelevant for coeff. However, collect is similar to coeff in many ways, so I propose to implement coeff using the helper methods of coeff in sympy.simplify (this should be rather easy). Attachments: 0001-Solve-.coeff-fails-for-x-8-x-y.patch 1.9 KB -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy-issues" group. To post to this group, send email to sympy-issues@googlegroups.com To unsubscribe from this group, send email to sympy-issues+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sympy-issues?hl=en -~----------~----~----~----~------~----~------~--~---