Using a while loop to output a cube root?

1 回表示 (過去 30 日間)
Nick Haufler
Nick Haufler 2015 年 10 月 8 日
回答済み: TastyPastry 2015 年 10 月 8 日
In the attached document, I cant seem to get the actual cube root value to come out. Could someone please look at my script file.

回答 (1 件)

TastyPastry
TastyPastry 2015 年 10 月 8 日
You're not updating the estimate. Your function's loop repeatedly uses the user inputted value for intialEstimate rather than updating it as the calculation progresses. You need to fix line 6 so that the estimate is updated for each loop iteration.

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ


Translated by