Please note, this is a STATIC archive of website www.w3resource.com from 19 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
w3resource

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()