Skip to main content

SIN

Calculates the sine of a specified angle given in radians.

See also:
[SELECT]


Syntax

SELECT SIN(radian_value) FROM <multipartIdentifier>;

Arguments

radian_value
A numeric expression that specifies the angle in radians for which the sine is to be calculated.

Return Value(s)

Returns the sine of the specified angle.


Examples

Calculate the sine of π/2 radians

SELECT SIN(PI() / 2) AS sine_value;

This query returns 1, as the sine of π/2 radians is 1.

Calculate the sine of π radians

SELECT SIN(PI()) AS sine_value;

This query calculates the sine of π radians, resulting in approximately 0, as the sine of π is 0.