Status: Accepted
Owner: smichr
Labels: Type-Defect Priority-Medium
New issue 2137 by smichr: as_real_imag is broken for cos(1+I)**3
http://code.google.com/p/sympy/issues/detail?id=2137
The following commit breaks the as_real_imag behavior of the expression
that follows:
176141fdddd559d44f2ce7b204e1354be64a2223 is first bad commit
commit 176141fdddd559d44f2ce7b204e1354be64a2223
Refactor as_real_imag() and _eval_expand_complex()
Before the commit:
h[6] >>> [w.n() for w in (cos(1+I)**3).as_real_imag()]
[-1.86642993968400, -1.09510392694686]
h[6] >>> (cos(1+I)**3).n()
-1.866429939684 - 1.09510392694686*I
h[7] >>> ^Z
and after...
h[4] >>> [w.n() for w in (cos(1+I)**3).as_real_imag()]
[-1.86642993968400, -1.23114704331554]
h[5] >>> (cos(1+I)**3).n()
-1.866429939684 - 1.09510392694686*I
See also issue 1985.
--
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.