Here's the operation in the complex area that R supports:
(-8/27+0i)^(2/3) [1] -0.2222222+0.3849002i
Test:
> ((-8/27+0i)^(2/3) )^(3/2) [1] -0.2962963+0i > -8/27
In addition, complex pairing is also the root:
(-0.2222222-0.3849002i)^(3/2) [1] -0.2962963-0i
To the question, what is the third root of -8/27:
polyroot( c(8/27,0,0,1) ) [1] 0.3333333+0.5773503i -0.6666667-0.0000000i 0.3333333-0.5773503i
The average value is the real root. Since you say -8/27 = x ^ 3, you are really asking for a solution to the cubic equation:
0 = 8/27 + 0*x + 0*x^2 + x^2
The polyroot function needs these 4 coefficient values ββand will return complex and real roots.
42-
source share