計算結果もあっているみたい。 計算途中結果をダンプして眺めてみていたのですが、2進数で小数点以下を表現することによる誤差のため、本来0であるべき桁に9が入っていたりして、そのため各桁で最大10回テストしないといけないのに最大9回しかできていなかったことが判明。このため、root ...
Write a program that asks the user for a positive number and then outputs the approximated square root of the number. Use Newton's method to find the square root, with epsilon = 0.01. $ python ...