标签:
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;
}
标签:
原文地址:http://www.cnblogs.com/yunger/p/5814532.html