Name

TAN( )

Synopsis

TAN(number)

This function returns the tangent of an angle, of a given number in radians. It’s the reverse of ATAN2().

SELECT ATAN2(1), TAN(0.785398);
+----------+---------------+
| ATAN2(1) | TAN(0.785398) |
+----------+---------------+
| 0.785398 |      1.000000 |
+----------+---------------+

Get MySQL in a Nutshell 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.