How is (-2)^(2/3) different than ((-2)^2)^(1/3) ?
Show older comments
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
2 Comments
According to my point of view, in the case of ((-2)^2)^(1/3), it first computes the part ((-2)^2), which gives 4. This is then calculated with ^(1/3). ie., 4^(1/3) which gives 1.5874.
So it should be (-2)^(2*1/3) which is same as (-2)^(2/3) instead of ((-2)^2)^(1/3). It's the placement of parentheses that matters.
Paulo Oliveira
on 23 Jan 2014
Accepted Answer
More Answers (1)
Azzi Abdelmalek
on 23 Jan 2014
Edited: Azzi Abdelmalek
on 23 Jan 2014
1 vote
Categories
Find more on Mathematics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!