Trigonometric Functions

The built-in trigonometric functions calculate ratios of the lengths of the sides of right triangles. Two supporting functions, DEGREES and RADIANS, can respectively convert the units of angular values from radians to degrees, and from degrees to radians.

The built-in trigonometric functions have the following syntax.
Trigonometric Functions

1 
2.1 COS
2.1 COSH
2.1 SIN
2.1 SINH
2.1 TAN
2.1 TANH
2.1 DEGREES
1 (
1 radian_expr
1 )
2.1 
2.2.1 ASIN
2.2.1 ASINH
2.2.1 ACOS
2.2.1 ACOSH
2.2.1 ATAN
2.2.1 ATANH
2.1 (
2.1 numeric_expr
2.1 )
2.1  ATAN2 ( y, x )
2.1  RADIANS ( degree_expr )
Element Description Restrictions Syntax
degree_expr Expression that represents the number of degrees Must return a value that can be converted to a DECIMAL type Expression
numeric_expr Expression that serves as the argument to the ASIN, ACOS, ATAN, ASINH, ACOSH or ATANH functions Must return a value between -1 and 1, inclusive Expression
radian_expr Expression that represents the number of radians Must return a numeric value Expression
x Expression that represents the x coordinate in the rectangular coordinate pair (x, y) Must return a numeric value Expression
y Expression that represents the y coordinate in the rectangular coordinate pair (x, y) Must return a numeric value Expression

Sections that follow describe each of these built-in trigonometric functions.