Open In App

TAN() Function in MySQL

Improve
Improve
Like Article
Like
Save
Share
Report

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.


Last Updated : 09 Dec, 2020
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads