%% Find Roots of Number
% Calculate the roots of -1 to the 1/3 power.

A = -1;
B = 1/3;
C = A.^B

% For negative base A and noninteger B, the power function returns complex results.
%
% Use the nthroot function to obtain the real roots.

C = nthroot(A,3)

% Copyright 2019 The MathWorks, Inc.