The equation in question is: (-8) ** (-1/3). Putting that into Python you get the following answer:
In [1]: (-8) ** (-1/3)
Out[1]: (0.25000000000000006-0.4330127018922193j)
Which is incorrect, the answer should be -0.5. But if I take out the negative, it works fine.
In [2]: (8) ** (-1/3) * -1
Out[2]: -0.5
What's going on? I tested this on two other calculators (Google's search calculator and a scientific calculator on Android, CalcES) and I got the same mistake that Python is making when the input is (-8) ** (-1/3).