Skip to content
Related Articles

Related Articles

Improve Article
TAN() Function in MySQL
  • Last Updated : 09 Dec, 2020

TAN() function :
This function in MySQL is used to return the tangent of a specified number. In any right triangle, the tangent of an angle is the length of the opposite side divided by the length of the adjacent side. Similarly, this can also be defined as tangent of x is the sine of x divided by the cosine of x, where x is the angle.

Syntax :

TAN(number)

Parameter :
This method accepts a parameter as given below as follows.

  • number – Specified numeric value.

Returns :
It returns the tangent of a specified number.

Example-1 :
The tangent of 1 is 1.5574077246549023.



SELECT TAN(1);

Output :

1.5574077246549023

Example-2 :
The tangent of 0 is 0.

SELECT TAN(0);

Output :

0

Example-3 :
The tangent of -3 is 0.1425465430742778.

SELECT TAN(-3);

Output :

0.1425465430742778

Example-4 :
The tangent of 3 is -0.1425465430742778.

SELECT TAN(3);

Output :

-0.1425465430742778

Application :
This function is used to return the tangent of a specified number.

My Personal Notes arrow_drop_up
Recommended Articles
Page :