Status: Accepted
Owner: [email protected]
Labels: Type-Defect Priority-Medium WrongResult

New issue 1985 by [email protected]: as_real_imag() gives wrong answer when expanding quotient
http://code.google.com/p/sympy/issues/detail?id=1985

In [2]: x = S.Symbol('x')

In [3]: e = (x+x*S.I)/(1+S.I)

In [4]: e.as_real_imag()
Out[4]: (im(x)/2 + I*(I*im(x) + re(x))/2 + re(x), -re(x)/2 + im(x))

The result should clearly be (re(x), im(x)), the result above gives complex values for the real part.

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