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


CategoryHomework

HSE/ArchitectureASM/Homework_CubicRoot (последним исправлял пользователь FrBrGeorge 2019-11-30 22:17:51)