SQL/MX 2.x Reference Manual (G06.24+, H06.03+)

SQL/MX Functions and Expressions
HP NonStop SQL/MX Reference Manual523725-004
9-11
ACOS Function
ACOS Function
The ACOS function returns the arccosine of a numeric value expression as an angle
expressed in radians.
ACOS is an SQL/MX extension.
numeric-expression
is an SQL numeric value expression that specifies the value for the argument of
the ACOS function. The range for the value of the argument is from -1 to +1. See
Numeric Value Expressions on page 6-50.
Examples of ACOS
This function returns the value 3.49044274380724352E-001 or approximately
0.3491 in radians (which is 20 degrees):
ACOS (0.9397)
This function returns the value 0.3491. The function ACOS is the inverse of the
function COS.
ACOS (COS (0.3491))
ACOS (numeric-expression)