COS function

This topic describes the formula syntax and usage of the COS function in the Data Quality Execute Formula transform.

Description

Returns the cosine of a number.

Syntax

COS(number)

The COS function syntax has the following arguments:

  • number Required. The angle in radians for which you want the cosine.

Note

  • If the angle is in degrees, either multiply the angle by PI()/180 or use the RADIANS function to convert the angle to radians.

Example

Data: 1.22173 radians or 70 degrees in Angle field.
Angle field value Formula Description Cosine
1.22173 radians COS(Angle) Cosine of 1.22173 radians 0.34202
70 degrees COS(Angle*PI()/180 Cosine of 70 degrees 0.34202
70 degrees COS(RADIANS(Angle)) Cosine of 70 degrees 0.34202