Comment #2 on issue 3710 by smi...@gmail.com: shallow expansion feature/bug
http://code.google.com/p/sympy/issues/detail?id=3710
In the case of expand_mul it is reasonable to want a flat expression which,
after expanding, would have nothing expandable. But without entering
anything but an Add or Mul. This is similar to how as_numer_denom works:
when it is done you won't have any nesting in the numer or denom. It is
fraction-flat when done. I looked at the PR 1431 discussion and I see that
the former expansion happened accidentally (and perhaps entered Pows) but I
am suggesting a purposeful definition of shallow to be anything accessible
in the Mul-flat expression. A Mul-flat expression for `1 + x*(y + z) +
sin(x*(y + z))*(a + b)` would be `a*sin(x*(y + z)) + b*sin(x*(y + z)) + x*y
+ x*z + 1`.
--
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 sympy-issues+unsubscr...@googlegroups.com.
To post to this group, send email to sympy-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.