Name

TAN()

Synopsis

TAN(number)

This function returns the tangent of an angle, where number is expressed in radians. It’s the reverse of ATAN2(). Here is an example:

SELECT ATAN2(1), TAN(0.785398);

+----------+---------------+
| ATAN2(1) | TAN(0.785398) |
+----------+---------------+
| 0.785398 |      1.000000 |
+----------+---------------+

Get MySQL in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.