Comment #4 on issue 1818 by smichr: coeff and collect failures on x**(1+x)
http://code.google.com/p/sympy/issues/detail?id=1818

regarding comment 1: the 2-arg mul behavior gets you here since the 3 gets distributed into the Add so there is no 1 + x term. You would have to factor the expression to get it in this form

h[5] >>> (3*(1+x)*x**2)
x**2*(3 + 3*x)

You can, however get the coefficient of 3*(1+x) or of 1 + x if 3 is replaced with y:

h[7] >>> (3*(1+x)*x**2).coeff(3*(1+x))
x**2
h[8] >>> (y*(1+x)*x**2).coeff(1+x)
y*x**2


--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-iss...@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.

Reply via email to