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 + i)/(i-I) I get the following outputs and not 
simply 0, i. Could someone suggest wayout to derive the real and imag parts 
for such cases other than above. While i have implemented a method for 
doing the same in https://github.com/sympy/sympy/pull/2380/files#L5R82_  
(that is real_imag in prde.py) it does not takes into account more general 
cases. Any suggestions for making it to work for cases when I have 
arbitrary expressions, not just rational functions as coefficients of the 
arguments

<https://lh4.googleusercontent.com/-lV8yyuvCwsY/UiYXK3BOz1I/AAAAAAAAB08/iQrn_o7gta0/s1600/Screenshot+from+2013-09-03+22%3A36%3A17.png>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to