摘要: public static double sqrt(double a) { double x1= 0.0; double x2 =a/2; while(x1!=x2) { x1=x2; System.out.println(a/x1); x2=(x1+a/x1)/2; } return x1; } 阅读全文
posted @ 2016-08-28 10:54 马云12314 阅读(4055) 评论(0) 推荐(0) 编辑