Real nth root of real numbers
While power
is a more efficient
function for computing the roots of numbers, in cases where both real
and complex roots exist, power
returns only the
complex roots. In these cases, use nthroot
to obtain
the real roots.