The COS() function returns the cosine of a given angle. It's a basic trigonometric function that calculates the ratio of the length of the side adjacent to an angle to the length of the hypotenuse, of a right-angled triangle. It's mathematically expressed as COS(x) = adjacent / hypotenuse. In a unit circle, it represents the x-coordinate of a point.

This function can be useful to smooth cyclical fluctuations in moving averages.

COS(Angle)

ArgumentData typeDescription
AngleNumber

The angle in radians for which you want to calculate the cosine.

Use the TORADIANS() function to convert degrees to radians.

The COS() function returns a numeric value between -1 and 1, inclusive.

This function is only available in the Polaris Calculation Engine.

COS(PI() / 3)

Returns NaN when Angle is NaN.

FormulaResult
COS(1.047)0.5002
COS(60 * PI() / 180)0.5
COS(TORADIANS(60))0.5