-
m1f2c3
发布于
DSP
-
0评论
-
11699次浏览
-
1233人收藏
-
2019-07-13 15:42
public static void main(String[] args) {
System.out.println(开方(3,1E-10));
}
public static double 开方(int n, double precision) {
double k = 10000000.0;
double w = 0;
int i = 1;
do {
k = (k + n / k) / 2;
w = Mat...