Please note, this is a STATIC archive of website www.w3resource.com from 19 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
w3resource

MySQL TAN() function

TAN() function

MySQL TAN() returns the tangent of the argument. The argument is given in radians.

Syntax:

TAN(X);

Where X is a number

Syntax Diagram:

MySQL TAN() Function - Syntax Diagram

MySQL Version: 5.6


Pictorial presentation of MySQL TAN() function

pictorial presentation of MySQL TAN() function

Example of MySQL TAN() function

Code:

SELECT TAN(2.465);

Explanation:

The above statement will return the tangent of the given number 2.465.

Sample Output:

mysql> SELECT TAN(2.465);
+--------------------+
| TAN(2.465)         |
+--------------------+
| -0.803041315427368 | 
+--------------------+
1 row in set (0.00 sec)

All Mathematical Functions

MySQL Mathematical Functions, slide presentation

Previous: SQRT()
Next: TRUNCATE()