在JavaScript如何计算正弦,余弦、正切函数值?
或
这些三角函数的数学对象不同之处是什么?
| 常量 | 示例代码 | 结果 | 说明 |
| sin(int) | Math.sin(1); | Math.sin(x) x为弧度,返回sin(x)的正弦值,x为弧度 | |
| cos(int) | Math.cos(1); | Math.cos(x) 返回cos(x)的余弦值,x为弧度 | |
| tan(int) | Math.tan(1); | Math.tan(1) 返回tan(1)的正切值,x为弧度 | |
| asin(int) | Math.asin(1); | Math.asin(x) 返回asin(x) 反正弦值,x为弧度 | |
| acos(int) | Math.acos(1); | Math.acos(x) 返回acos(x) 反余弦值,x为弧度 | |
| atan(int) | Math.atan(1); | Math.atan(x) 返回atan(x) 反正切值,x为弧度 |