反向平方根:在数学库中或如何计算它

dan*_*nke 1 apache-flex math actionscript-3

Actionscript是否有一个函数可以告诉我输入的平方根是什么数字.例如:

4     //output 2, because 4 is the square root of 2
16    //output 4, because 16 is the square root of 4
Run Code Online (Sandbox Code Playgroud)

McA*_*den 6

那不是"反向"平方根.这是平方根.

使用:

Math.sqrt (x);
Run Code Online (Sandbox Code Playgroud)

这是文档