Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Why I got a complex number rather than a real number in the program as below?

1 vue (au cours des 30 derniers jours)
Shawn Miller
Shawn Miller le 18 Fév 2016
Clôturé : MATLAB Answer Bot le 20 Août 2021
q=@(x)(x-1.0).^(1.0./5.0).*5.0+5.0;
q(rand);

Réponses (1)

Steven Lord
Steven Lord le 18 Fév 2016
You're asking for the fifth root, not the cube root, but the explanation is the same as in this previous Answer.

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by