摘要:
这题没多大技巧性,只是牛顿迭代法多用于数值计算,这里出现有些意外。维基上有方法说明:http://zh.wikipedia.org/wiki/牛顿法 int sqrt(int x) { if (x == 0) return 0; double x0 = 1.0; while (1){... 阅读全文
posted @ 2014-09-30 21:29
sfesly
阅读(155)
评论(0)
推荐(0)
浙公网安备 33010602011771号