Updates:
Status: WontFix
Comment #11 on issue 3710 by [email protected]: shallow expansion feature/bug
http://code.google.com/p/sympy/issues/detail?id=3710
Closing as won't fix. If you do a shallow expansion wrt Mul, you may have
factors in terms that will be the same if the expansion were done deeply so
you might as well do the deep expansion.
But this can be tricked into expanding terms of an Add as follows:
eq=x+x*(y+1)
expand_mul(eq, deep=0)
x*(y + 1) + x
expand_mul(Mul(2,eq,evaluate=0), deep=0)/2
x*y + 2*x
or
kern=Dummy(); expand_mul(eq*kern, deep=0).xreplace({kern:1})
x*y + 2*x
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.