Status: Accepted
Owner: smichr
Labels: Type-Defect Priority-Medium

New issue 2067 by smichr: expand complex does expand (x+I*x)/(1+I) quotient
http://code.google.com/p/sympy/issues/detail?id=2067

The expansion of the quotient is less than optimal. Although the quotient no longer causes an error, it doesn't give the desired result:

(x+I*x)/(1+I)
(x + I*x)/(1 + I)
_.expand(complex=1)
(1/2 - I/2)*(I*(I*im(x) + re(x)) + I*im(x) + re(x))

As pointed out in 1985, the answer should be re(x) + I*im(x).

Many expansion issues (including this one) are fixed by the 1725 commit in t2 (github/smichr).

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" 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-issues?hl=en.

Reply via email to