Dec-03-2016, 08:07 PM
This response had me confused for a while:
>>> (-6)**(1/3) (0.9085602964160701+1.5736725951324722j) >>> abs(_) 1.8171205928321397 >>> (-_)**3 -6.0Until I realized that in the complex number plane, numbers must have more than one cube root, just like on the real number line numbers have more than one square root. Is there a way to force the power function to return a real answer if one is available?