Catégories :

Fonctions numériques (trigonométrique)

SIN

Calcule le sinus de son argument ; l’argument doit être exprimé en radians.

Syntaxe

SIN( <input_expr> )
Copy

Arguments

input_expr

The value or expression to operate on. The value must be in radians, not degrees. The data type must be FLOAT or DECFLOAT.

Returns

If the input expression is of type DECFLOAT, the returned type is DECFLOAT. Otherwise, the returned type is FLOAT.

Exemples

SELECT SIN(0), SIN(PI()/3), SIN(RADIANS(90));
--------+--------------+------------------+
 SIN(0) | SIN(PI()/3)  | SIN(RADIANS(90)) |
--------+--------------+------------------+
 0      | 0.8660254038 | 1                |
--------+--------------+------------------+
Copy