Info

此问题已关闭。 请重新打开它进行编辑或回答。

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

1 次查看(过去 30 天)
q=@(x)(x-1.0).^(1.0./5.0).*5.0+5.0;
q(rand);

回答(1 个)

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

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by