摘要: Description:Implement int sqrt(int x).Compute and return the square root of x.好好学习数学还是非常有用的,牛顿迭代法 求解。 计算x2= n的解,令f(x)=x2-n,相当于求解f(x)=0的解,如左图所示。 首先取x0,... 阅读全文
posted @ 2015-06-29 00:10 Pickle 阅读(172) 评论(0) 推荐(0) 编辑