interview-answe icon indicating copy to clipboard operation
interview-answe copied to clipboard

225.Math

Open webVueBlog opened this issue 5 years ago • 1 comments

[js]

webVueBlog avatar May 05 '20 23:05 webVueBlog

Math.abs(num) 返回num 的绝对值 Math.asin(x) 返回x 的反正弦值 Math.exp(num) 返回Math.E 的num 次幂 Math.atan(x) 返回x 的反正切值 Math.log(num) 返回num 的自然对数 Math.atan2(y,x) 返回y/x 的反正切值 Math.pow(num,power) 返回num 的power 次幂 Math.cos(x) 返回x 的余弦值 Math.sqrt(num) 返回num 的平方根 Math.sin(x) 返回x 的正弦值 Math.acos(x) 返回x 的反余弦值 Math.tan(x) 返回x 的正切值

webVueBlog avatar May 05 '20 23:05 webVueBlog