[sympy] Irrational Numbers - Real and Imaginary Parts

2013-09-03 Thread Chetna Gupta
Inorder to get the real and imaginary parts of an irrational function, i have tried the following functions 1) as_real_imag() 2) expand_complex() While they work for most of the cases, both of them seem to fail when I have irrational functions in the denominator. For example for the case (i +

Re: [sympy] Irrational Numbers - Real and Imaginary Parts

2013-09-03 Thread Aaron Meurer
This is definitely a bug. It looks like expand(complex=True) works. This is different from expand_complex in that it also calls the other expand methods too, so that it really ends up calling it on 1/(1 - I) and I/(1 - I). So for now, I guess you will have to use expand(expr,

Re: [sympy] Irrational Numbers - Real and Imaginary Parts

2013-09-03 Thread Chetna Gupta
For Sure Aaron, on it Issue Opened: Issue 4007https://code.google.com/p/sympy/issues/detail?id=4007q=irrationalcolspec=ID%20Type%20Status%20Priority%20Milestone%20Reporter%20Summary%20Stars On Wednesday, September 4, 2013 4:44:23 AM UTC+5:30, Aaron Meurer wrote: This is definitely a bug.