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.
Syntax
COS(Angle)
Arguments
| Argument | Data type | Description |
| Angle | Number | The angle in radians for which you want to calculate the cosine. Use the |
The COS() function returns a numeric value between -1 and 1, inclusive.
Calculation engine functionality differences
This function is only available in the Polaris Calculation Engine.
Syntax example
COS(PI() / 3)
Additional information
Returns NaN when Angle is NaN.
Excel equivalent
Examples
| Formula | Result |
COS(1.047) | 0.5002 |
COS(60 * PI() / 180) | 0.5 |
COS(TORADIANS(60)) | 0.5 |
Example 1: Customer engagement score decay modeling
Example 2: Bond price sensitivity to interest rate cycles
Example 3: Carrier rate cycle optimisation
Example 4: Employee productivity rhythm modeling