TITLE: Matlab wrong cube root
QUESTION [23 upvotes]: How can I get MATLAB to calculate $(-1)^{1/3}$ as $-1$? Why is it giving me $0.5000 + 0.8660i$ as solution? I have same problem with $({-1\over0.1690})^{1/3}$ which should be negative.

REPLY [12 votes]: Try nthroot(-1,3).
If you type (-1)^(1/3), it'll give you the solution to $x^3=-1$ on the complex plane with lower argument.

REPLY [7 votes]: If you want the real cube root of $a<0$, try $-|a|^{\Large\frac{1}{3}}$.