- Categories:
Numeric functions (Trigonometric)
COSยถ
Computes the cosine of its argument; the argument should be expressed in radians.
Syntaxยถ
COS( <real_expr> )
Argumentsยถ
real_expr
This expression should evaluate to a real number. The value should be in radians, not degrees.
Examplesยถ
SELECT COS(0), COS(PI()/3), COS(RADIANS(90)); --------+-------------+------------------+ COS(0) | COS(PI()/3) | COS(RADIANS(90)) | --------+-------------+------------------+ 1 | 0.5 | 6.123233996e-17 | --------+-------------+------------------+