Math.tan(x)
此函数返回x的正切值。
语法 (Syntax)
Math.tan(x)
参数 (Parameter)
X1 - 代表一个数字
例子 (Example)
console.log("---Math.tan()---")
console.log("Math.tan(Math.PI/4): "+Math.tan(Math.PI/4))
console.log("Math.tan(0): "+Math.tan(0))
输出 (Output)
---Math.tan()---
Math.tan(Math.PI/4): 0.9999999999999999
Math.tan(0): 0