The algorithm to calculate the fractional power in MATLAB?

14 ビュー (過去 30 日間)
Choszit Lee
Choszit Lee 2017 年 4 月 15 日
コメント済み: Choszit Lee 2017 年 4 月 19 日
>> (-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.

採用された回答

the cyclist
the cyclist 2017 年 4 月 15 日
編集済み: the cyclist 2017 年 4 月 15 日
This is explained in the documentation for power (especially the "Find Roots of Number" section) and nthroot.
  1 件のコメント
Choszit Lee
Choszit Lee 2017 年 4 月 19 日
Thanks for your kindness~It's really helpful.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange数学 についてさらに検索

Community Treasure Hunt

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

Start Hunting!