Name
Math.tan( ) — compute a tangent
Availability
JavaScript 1.0; JScript 1.0; ECMAScript v1
Synopsis
Math.tan(x
)
Arguments
-
x
An angle, measured in radians. To convert degrees to radians, multiply the degree value by 0.017453293 (2π/360).
Returns
The tangent of the specified angle
x
.
Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.