Jump to: navigation, search

Mysql TAN

From w3cyberlearnings

Contents

MySQL TAN Function

This function returns the tangent of X and X is radian unit.

Syntax TAN

X is a radian value.

TAN(X);

Example 1

mysql> SELECT TAN(PI()/4);
+-------------+
| TAN(PI()/4) |
+-------------+
|           1 |
+-------------+
1 row in set (0.00 sec)

Example 2

mysql> SELECT TAN(PI()/2);
+----------------------+
| TAN(PI()/2)          |
+----------------------+
| 1.63312393531954e+16 |
+----------------------+
1 row in set (0.00 sec)

Related Links


Navigation
Web
SQL
MISC
References