SIN
Returns the sine of the argument; the argument is expected in radians.
Syntax
sql
SIN(expr)Argument
expr: A real number representing radians or an argument of another data type that can be implicitly converted to a numeric data type.
Return Value
The value of data type DECIMAL.
Example
sql
SELECT sin(0), sin(3.1416), sin(1), sin(1.57), sin(4.71);+--------+--------------------------+--------------------+--------------------+--------------------+
| SIN(0) | SIN(3.1416) | SIN(1) | SIN(1.57) | SIN(4.71) |
+--------+--------------------------+--------------------+--------------------+--------------------+
| 0 | -0.000007346410206695459 | 0.8414709848078965 | 0.9999996829318346 | -0.999997146387718 |
+--------+--------------------------+--------------------+--------------------+--------------------+