フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

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

1 回表示 (過去 30 日間)
Shawn Miller
Shawn Miller 2016 年 2 月 18 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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