Trigonometric Functions

SIN( <expr> )

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

> select sin(randians(90));
1

SINH( <expr> )

Calculate the hyperbolic sine of its argument.

Support datatype: INT/DOUBLE

> select sinh(-0.2);
-0.20133600254109402

COS( <expr> )

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

> select cos(degrees(45));
0.7071067811865476

COSH( <expr> )

Calculate the hyperbolic cosine of its argument.

> select cosh(-5)
74.20994852478785

ACOSH( <expr> )

Calculate the hyperbolic cosine of its argument.

TANH( <expr> )

Computes the hyperbolic tangent of the expr

COT( <expr> )

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

DEGREES( <expr> )

Converts radians to degrees.

RADIANS( <expr> )

Converts degrees to radians.

PI( )

Returns the value of pi as float

Last updated