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



Follow us on Facebook and Twitter for latest update.




We are closing our Disqus commenting system for some maintenanace issues. You may write to us at reach[at]yahoo[dot]com or visit us at Facebook