Math.tan method
The Math.tan method returns
the tangent of a number (this number
must be an angle in radians).
Syntax
javascriptMath.tan(number);
Example
Let's output the tangent
of 89:
javascriptconsole.log(Math.tan(89));
The code execution result:
javascript1.6858253705060158
See also
-
the
Math.cos method
that returns the cosine of a number
-
the
Math.sin method
that returns the sine of a number
-
the
Math.asin method
that returns the arcsine of a number
-
the
Math.acos method
that returns the arccosine of a number
-
the
Math.atan method
that returns the arctangent of a number