Status: Accepted
Owner: smi...@gmail.com
Labels: Type-Defect Priority-Medium NeedsReview smichr

New issue 2383 by smi...@gmail.com: sqrt(-2*x*neg) gives wrong expansion
http://code.google.com/p/sympy/issues/detail?id=2383

While working on 1847 I noticed this error. I'll include this with the pull request there.

    >>> from sympy import *
    >>> from sympy.abc import *
    >>> from sympy import *
    >>> n=Symbol('n', negative=True)
    >>> sqrt(-2*x*n)
    2**(1/2)*(-n)**(1/2)*(-x)**(1/2)
    >>> _.subs({x:-1,n:-1})
    2**(1/2)
    >>> sqrt((-2*x*n).subs({x:-1,n:-1}))
    I*2**(1/2)

https://github.com/sympy/sympy/pull/306

--
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