Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Medium Solvers

New issue 3161 by asmeu...@gmail.com: multiplication by I breaks solve
http://code.google.com/p/sympy/issues/detail?id=3161

In [37]: print w1
sqrt((z + 2)/(z - 2))

In [38]: solve(w1 - w, z)
Out[38]:
⎡  ⎛ 2    ⎞⎤
⎢2⋅⎝w  + 1⎠⎥
⎢──────────⎥
⎢   2      ⎥
⎣  w  - 1  ⎦

In [39]: solve(w1*I - w, z)
Out[39]: []

If I absorb it in as sqrt(-1), it works:

In [35]: w2 = sqrt((z + 2)/(2 - z))

In [36]: solve(w2 - w, z)
Out[36]:
⎡  ⎛ 2    ⎞⎤
⎢2⋅⎝w  - 1⎠⎥
⎢──────────⎥
⎢   2      ⎥
⎣  w  + 1  ⎦

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to