Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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

2 Ansichten (letzte 30 Tage)
Shawn Miller
Shawn Miller am 18 Feb. 2016
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
q=@(x)(x-1.0).^(1.0./5.0).*5.0+5.0;
q(rand);

Antworten (1)

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

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by