This tutorial explains how to use the MySQL SIN function with syntax and examples.
The MySQL SIN function returns the sine of a number.
The syntax for the SIN function in MySQL is:
SIN( number )
The value used to calculate the sine. It is expressed in radians.
The SIN function can be used in the following versions of MySQL:
Let's look at some MySQL SIN function examples and explore how to use the SIN function in MySQL.
For example:
mysql> SELECT SIN(2);
Output: 0.9092974268256817
mysql> SELECT SIN(0);
Output: 0
mysql> SELECT SIN(-0.9);
Output: -0.7833269096274834