Updates:
Summary: root of negative number in denominator
Comment #1 on issue 1538 by smichr: root of negative number in denominator
http://code.google.com/p/sympy/issues/detail?id=1538
You can see the problem perhaps more clearly from this:
>>> s=S(1)/6
>>> 1/(-1)**s
-(-1)**(5/6) #that's right
>>> 1/(-2)**s #but wrong when it's not a clean 1 or exact nth
>>> root
(-1)**(1/6)*2**(5/6)/2
>>> _.evalf() #it's wrong, the imaginary part should be
>>> negative;
0.771540922108526 + 0.44544935907017*I
>>> (-(-1)**(5*s)*2**(5*s)/2).evalf() #as you can see
0.771540922108526 - 0.44544935907017*I
/c
--
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
-~----------~----~----~----~------~----~------~--~---