SQL/MX 2.x Reference Manual (H06.04+)

SQL/MX Functions and Expressions
HP NonStop SQL/MX Reference Manual540440-003
9-31
COS Function
COS Function
The COS function returns the cosine of a numeric value expression, where the
expression is an angle expressed in radians.
COS is an SQL/MX extension.
numeric-expression
is an SQL numeric value expression that specifies the value for the argument of
the COS function. See Numeric Value Expressions on page 6-48.
Examples of COS
This function returns the value 9.39680940386503936E-001, or approximately
0.9397, the cosine of 0.3491 (which is 20 degrees):
COS (0.3491)
COSH Function
The COSH function returns the hyperbolic cosine of a numeric value expression,
where the expression is an angle expressed in radians.
COSH is an SQL/MX extension.
numeric-expression
is an SQL numeric value expression that specifies the value for the argument of
the COSH function. See Numeric Value Expressions on page 6-48.
Examples of COSH
This function returns the value 1.88842387716101616E+000, or approximately
1.8884, the hyperbolic cosine of 1.25 in radians:
COSH (1.25)
COS (numeric-expression)
COSH (numeric-expression)