[英]How do I get the double Square root of a number
I need to get a double square root of a number but my codes won't work:我需要得到一个数字的双平方根,但我的代码不起作用:
function doubleSquareRootOf(num) {
return num * num * num;
}
var output = doubleSquareRootOf(121);
console.log(output); // --> it must return 22 but its displaying 1771561
Any idea?任何的想法?
尝试 sqrt * 2 而不是 num
return Math.sqrt(num)*2;
math.sqrt(math.sqrt(number)) -> 这是一个数字的双平方根
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.