Updates:
Summary: Have re and im call expand(complex=True)
Status: Accepted
Comment #10 on issue 754 by asmeurer: Have re and im call
expand(complex=True)
http://code.google.com/p/sympy/issues/detail?id=754
We seem to have the function requested in comment 4, namely
expand(complex=True), which calls
_eval_expand_complex() correctly, and all the integrals in the last few
comments work just fine for me. as_real_imag()
uses it, but, it seems that re() and im() still do not:
In [36]: print exp(x).expand(complex=True)
I*exp(re(x))*sin(im(x)) + cos(im(x))*exp(re(x))
In [37]: print exp(x).as_real_imag()
(cos(im(x))*exp(re(x)), exp(re(x))*sin(im(x)))
In [38]: print re(exp(x))
re(exp(x))
In [39]: print im(exp(x))
im(exp(x))
On the plus side, it seems that the integrals in the last few comments work
fine now, and the integral in the original
report message simply returns pi.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--
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.