offline version v3


44 of 264 menu

Math.tan method

The Math.tan method returns the tangent of a number (this number must be an angle in radians).

Syntax

Math.tan(number);

Example

Let's output the tangent of 89:

console.log(Math.tan(89));

The code execution result:

1.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
enru