The algorithm to calculate the fractional power in MATLAB?

13 vues (au cours des 30 derniers jours)
Choszit Lee
Choszit Lee le 15 Avr 2017
Commenté : Choszit Lee le 19 Avr 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.

Réponse acceptée

the cyclist
the cyclist le 15 Avr 2017
Modifié(e) : the cyclist le 15 Avr 2017
This is explained in the documentation for power (especially the "Find Roots of Number" section) and nthroot.
  1 commentaire
Choszit Lee
Choszit Lee le 19 Avr 2017
Thanks for your kindness~It's really helpful.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 数学 dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!