1.15的5次方根是多少?

来源:百度知道 编辑:UC知道 时间:2024/05/27 09:26:42

1.02835

结果:1.0283467221002136

参考下面的代码

import java.text.DecimalFormat;

public class Test82 {
public static void main(String[] args) {
double y=0;
double x=1.15;//被开方数
int n=5;//开方次数

y=java.lang.StrictMath.pow(x,1.0/n);

System.out.println(y);
}
}