Comment #4 on issue 1985 by [email protected]: as_real_imag() gives wrong answer when expanding quotient
http://code.google.com/p/sympy/issues/detail?id=1985
The new assumptions don't help. But note that re(e), im(e) gives a correct result:
In [1]: e = (x+x*I)/(1+I) In [2]: re(e), im(e) Out[2]: ⎛ ⎛x + ⅈ⋅x⎞ ⎛x + ⅈ⋅x⎞⎞ ⎜re⎜───────⎟, im⎜───────⎟⎟ ⎝ ⎝ 1 + ⅈ ⎠ ⎝ 1 + ⅈ ⎠⎠ so I think that deprecating as_real_imag would be a good thing. "There should be one-- and preferably only one --obvious way to do it." -- 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.
