ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 17 Sep 2020 23:44:47 +0200Imaginary result for cube root of -1https://ask.sagemath.org/question/53481/imaginary-result-for-cube-root-of-1/I get -1 as the cube root of -1,which is correct.
But if I put -1 in parentheses I get an imaginary result.
I was hoping the imaginary result, if cubed, would give
me -1, but it got worse.
-1^(1/3).n()
-1.00000000000000
(-1)^(1/3).n()
0.500000000000000 + 0.866025403784439*I
cybervigilanteThu, 17 Sep 2020 23:44:47 +0200https://ask.sagemath.org/question/53481/