--- title: "COS function" slug: "cos-function" updated: 2025-09-30T11:52:08Z published: 2025-09-30T11:52:08Z canonical: "kb.pigment.com/cos-function" --- > ## Documentation Index > Fetch the complete documentation index at: https://kb.pigment.com/llms.txt > Use this file to discover all available pages before exploring further. # COS function ## Description Returns the cosine of the given angle in radians. ## Syntax `COS(Number)` ## Arguments | **Argument** | **Type** | **Dimensions** | **Description** | | --- | --- | --- | --- | | *Number* (required) | Number | Any Dimensions | Angle in radians for which to compute the cosine. | ## Returns | **Type** | **Dimensions** | | --- | --- | | Number | Dimensions of *Number* | ## Examples | **Formula** | **Result** | **Description** | | --- | --- | --- | | `COS(0.524)` | 0.866 | The cosine of π/6 radians is 0.866. | | `COS(0.785)` | 0.707 | The cosine of π/4 radians is 0.707. | | `COS(1.571)` | 0 | The cosine of π/2 radians is 0. | | `(1-COS(3.1416))/2` | 1 | The output of this formulation is the haversine. | ## ## Related articles: [SIN function](/v1/docs/sin-function)