Trigonometric Functions

SIN( <expr> )

Calculate the sine of the given argument, which must be in radians.

> select sin(randians(90));
1

COS( <expr> )

Calculate the cosine of the given argument, which must be in radians.

> select cos(degrees(45));
0.7071067811865476

TANH( <expr> )

Computes the hyperbolic tangent of the expr

> select tanh(3.5);
0.9981778976111987

DEGREES( <expr> )

Converts radians to degrees.

> select degrees(1);
57.29577951308232

RADIANS( <expr> )

Converts degrees to radians.

> select radians(1);
1.0471975511965976

PI( )

Returns the value of pi as float

> select pi() 
3.141592654

Last updated