521
Комментарий:
|
← Версия 7 от 2019-11-30 22:17:51 ⇥
527
|
Удаления помечены так. | Добавления помечены так. |
Строка 10: | Строка 10: |
Spoiler: suppose solution is between N and M. Select $$K=(M+N)/2$$ and if $$|K^3|>|A|$$ then solution is between M and K, else it is between K and N | Spoiler: suppose solution is between M and N (M<N). Select $$K=(M+N)/2$$ and if $$|K^3|>|A|$$ then solution is between M and K, else it is between K and N |
Input double (positive or negative) float $$1<=|A|<=1000000$$ and $$0.00001<=varepsilon<=0.01$$. Calculate a cubical root of A with closeness $$<=varepsilon$$ (you do not need to round the result). HINT: you always can calculate a cubic power of something!
1000 0.0001
Spoiler: suppose solution is between M and N (M<N). Select $$K=(M+N)/2$$ and if $$|K^3|>|A|$$ then solution is between M and K, else it is between K and N
9.99995