When you use the deep option for processing expressions, what is the
expectation? I would think that "deep" means processing arguments of
an expressions arguments, but this is not apparently what is meant
since, for example, the multiplied arguments of an Add's arguments are
currently "walked" when doing a shallow expansion.

>>> from sympy import *
>>> var('x y')
(x, y)
>>> (x+I*y).expand(complex=1,deep=0)
-im(y) + I*im(x) + I*re(y) + re(x)
>>>

The arguments of the Add's second argument (the Mul, I*y) were walked/
processed so the "args of args" interpretation of deep is not what is
being used.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to