Comment #6 on issue 1985 by renato.c...@gmail.com: as_real_imag() gives wrong answer when expanding quotient
http://code.google.com/p/sympy/issues/detail?id=1985

Playing with it a bit more, looks like ask(expr, Q.real) works well in this case, and could be used the way Aaron said. I'll write a patch and see if the tests work.

The other way, taking code from _eval_expand_complex(), doesn't look promising, this function is actually a method implemented by operators, so it's scattered over several files, and at some point all of them use as_real_imag() internally. This is also a good reason not to remove the function in the first place.

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

Reply via email to