Returns the cosine of an angle expressed in radians, with a precision of 15 decimal places.

COS(radians)
Name Type Description
radians numeric The measurement of the angle in radians.

Numeric.

Basic examples

Returns 0.500000000000000 (the specified number of radians):

COS(1.047197551196598)

Advanced examples

Using degrees as input

Returns 0.500000000000000 (the cosine of 60 degrees):

COS(60 * PI( )/180)

Rounding to 3 decimal places

Returns 0.500 (the cosine of 60 degrees, rounded to 3 decimal places):

DEC(COS(60 * PI( )/180),3)

Performing the Mantissa Arc Test

The three trigonometric functions in Analytics – SIN( ), COS( ), and TAN( ) – support performing the Mantissa Arc Test associated with Benford's Law.

Converting degrees to radians

If your input is in degrees you can use the PI( ) function to convert the input to radians: (degrees * PI( )/180) = radians. If required, you can round or truncate the return value using the DEC( ) function.