COS
Syntax
COS (Data)
Description
The COS function returns the cosine of Data, where Data represents an angle in radians.
To convert from degrees to radians, multiply by PI( ) / 180. The PI function returns the value of PI.
Example
The following examples employ the COS built-in function:
-
COS(PI( ) / 3)returns 0.5 (cosine of PI / 3 radians). -
COS(PI( ) / 2)returns 0 (cosine of PI / 2 radians). -
COS(45 * PI( ) / 180)returns 0.7071067812 (cosine of 45 degrees).