w3resource
MYSQL Tutorial

MySQL SIN() function

SIN() function

MySQL SIN() returns the sine of the argument. The argument is given in radians.

Syntax:

SIN(X);

Argument

Name Description
X A number whose SIN value is to be retrieved.

Syntax Diagram:

MySQL SIN() Function - Syntax Diagram

MySQL Version: 5.6


Pictorial presentation of MySQL SIN() function

pictorial presentation of MySQL SIN() function

Example of MySQL SIN() function

Code:

SELECT SIN(1);

Explanation

The above MySQL statement will return the sine of 1.

Sample Output:

mysql> SELECT SIN(1);
+-------------------+
| SIN(1)            |
+-------------------+
| 0.841470984807897 | 
+-------------------+
1 row in set (0.01 sec)

All Mathematical Functions

MySQL Mathematical Functions, slide presentation

Previous: SIGN()
Next: SQRT()