Hi everybody.

It's the first time I ask a question here.

I would like to understand how is that possible that the following expressions give different results:

>> (-2)^(2/3)

ans =

`-0.7937 + 1.3747i`

>> ((-2)^2)^(1/3)

ans =

` 1.5874`

Skip to content# MATLAB: How is (-2)^(2/3) different than ((-2)^2)^(1/3)

###### Related Question

complexexponentialnegative

Hi everybody.

It's the first time I ask a question here.

I would like to understand how is that possible that the following expressions give different results:

>> (-2)^(2/3)

ans =

`-0.7937 + 1.3747i`

>> ((-2)^2)^(1/3)

ans =

` 1.5874`

- Solve returns different answers to the same question
- Why does similar code generate complex numbers
- My query is to get roots with positive real part of an equation having variable real coefficients. An example is given below.
- MATLAB showing two equal numbers as not equal to each other
- Symbolic cubic polynomial solver
- Simultaneous Equations – Any help ASAP is greatly appreciated!

## Best Answer