Updates:
Status: Started
Comment #3 on issue 3162 by smi...@gmail.com: Wrong result from as_real_imag
http://code.google.com/p/sympy/issues/detail?id=3162
The wrong change was made to as_real_imag() inn 93e662db0b67e979f18dc. The
recursive calling of add and mul to each other while
Status: Accepted
Owner:
Labels: Type-Defect Priority-Medium WrongResult
New issue 3162 by asmeu...@gmail.com: Wrong result from as_real_imag
http://code.google.com/p/sympy/issues/detail?id=3162
In [67]: z = Symbol('z')
In [68]: w1 = sqrt((z + 2)/(z - 2))
In [69]: w1.as_real_imag()
Comment #1 on issue 3162 by asmeu...@gmail.com: Wrong result from
as_real_imag
http://code.google.com/p/sympy/issues/detail?id=3162
Actually, if you assume z is real, you get the right answer:
In [70]: z = Symbol('z', real=True)
In [71]: w1 = sqrt((z + 2)/(z - 2))
In [72]: