Trigonometric Functions

ACOS

ACOS(x) Computes the arc cosine of x.

SQL commandResult
SELECT ACOS(0.7)0.7953988301841436

ACOSH

ACOSH(x) Computes the inverse hyperbolic cosine of x.

SQL commandResult
SELECT ACOSH(90)5.192925985263684

ASIN

ASIN(x) Computes the arc sine of x.

SQL commandResult
SELECT ASIN(0.7)0.775397496610753

ASINH

ASINH(x) Computes the inverse hyperbolic sine of x.

SQL commandResult
SELECT ASINH(0.7)0.6526665660823557

ATAN

ATAN(x) Computes the arc tangent of x.

SQL commandResult
SELECT ATAN(0.7)0.6107259643892086

ATAN2

ATAN2(y, x) Computes the arc tangent of y / x, but with proper sign for quadrant correction. That is, correctly computes the angle θ when converting from the Cartesian coordinates (x, y) to the polar coordinates (r, θ).

SQL commandResult
SELECT ATAN2(5, 3)1.0303768265243125

ATANH

ATANH(x) Computes the inverse hyperbolic tangent of x.

SQL commandResult
SELECT ATANH(0.7)0.8673005276940531

COS

ACOS(x) Computes the arc cosine of x.

SQL commandResult
SELECT COS(0.7)0.7648421872844885

COSH

ACOSH(x) Computes the inverse hyperbolic cosine of x.

SQL commandResult
SELECT COSH(0.7)1.255169005630943

HYPOT

HYPOT(x, y) Computes SQRT(x*x + y*y), that is, the length of the hypothenuse of a right-angled triangle with sides of lengths x and y. This is also the distance between the point at coordinates (x, y) and origin.

SQL commandResult
SELECT HYPOT(3, 4)5.0

SIN

ASIN(x) Computes the arc sine of x.

SQL commandResult
SELECT SIN(0.7)0.644217687237691

SINH

ASINH(x) Computes the inverse hyperbolic sine of x.

SQL commandResult
SELECT SINH(0.7)0.7585837018395334

TAN

ATAN(x) Computes the arc tangent of x.

SQL commandResult
SELECT TAN(0.7)0.8422883804630794

TANH

ATANH(x) Computes the inverse hyperbolic tangent of x.

SQL commandResult
SELECT TANH(0.7)0.6043677771171636