Returns the sine of expression.

Syntax

SIN ( expression )

Notes

  • SIN takes an angle (expression) and returns the ratio of two sides of a right triangle. The ratio is the length of the side opposite the angle divided by the length of the hypotenuse.
  • expression specifies an angle in radians.
  • expression must evaluate to an approximate numeric data type.
  • To convert degrees to radians, multiply degrees by Pi/180. To convert radians to degrees, multiply radians by 180/Pi.

Example

This example illustrates the SIN trigonometric function:

select sin(45 * pi()/180) 'Sine of 45 degrees' from MYMATH;
 SINE OF 45 DEGREES
------------------ 
0.707106781186547
 1 record selected

Compatibility

ODBC compatible