The algorithm to calculate the fractional power in MATLAB?

14 Ansichten (letzte 30 Tage)
Choszit Lee
Choszit Lee am 15 Apr. 2017
Kommentiert: Choszit Lee am 19 Apr. 2017
>> (-1).^(2/3)
ans =
-0.5000 + 0.8660i
>> ((-1).^2).^(1/3)
ans =
1
I tried to calculate the fractional power 2/3 of the negative -1, then I found the results above...Orz...Could anyone help me to understand this issue? THX.

Akzeptierte Antwort

the cyclist
the cyclist am 15 Apr. 2017
Bearbeitet: the cyclist am 15 Apr. 2017
This is explained in the documentation for power (especially the "Find Roots of Number" section) and nthroot.

Weitere Antworten (0)

Kategorien

Mehr zu 数学 finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!