Comment #8 on issue 3710 by [email protected]: shallow expansion feature/bug
http://code.google.com/p/sympy/issues/detail?id=3710

This is the intended expansion in the codebase when expand_mul is used. Since deep is automatically True, this also recurses through the entire tree making changes that won't be processed at the level that a simplification routine is likely working at. e.g. if I want to extract the gcd from an expression, I would flatten it, leaving contents of cos, for example, alone since the interior won't leak out, and then run over the factors of each term looking for gcds.

Imagine using expand_mul(deep=True) in a bottom up simplification: every time it gets used it drills down through the already expanded tree when all that is actually needed is to flatten the current level wrt Add and Mul.

--
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.


Reply via email to