Jump to: navigation, search

Mysql SIN

From w3cyberlearnings

Contents

MySQL SIN Function

This function returns the SINE of X, and X is radian unit.

Syntax SIN

X is radian.

SIN(X);

Example 1

mysql> SELECT SIN(PI());
+----------------------+
| SIN(PI())            |
+----------------------+
| 1.22464679914735e-16 |
+----------------------+
1 row in set (0.00 sec)

Example 2

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

Related Links


Navigation
Web
SQL
MISC
References