﻿---
title: ES|QL SIN function
description: 
url: https://www.elastic.co/elastic/docs-builder/docs/3028/reference/query-languages/esql/functions-operators/math-functions/sin
products:
  - Elasticsearch
---

# ES|QL SIN function
## Syntax

![Embedded](https://www.elastic.co/elastic/docs-builder/docs/3028/reference/query-languages/esql/images/functions/sin.svg)


## Parameters

<definitions>
  <definition term="angle">
    An angle, in radians. If `null`, the function returns `null`.
  </definition>
</definitions>


## Description

Returns the [sine](https://en.wikipedia.org/wiki/Sine_and_cosine) of an angle.

## Supported types


| angle         | result |
|---------------|--------|
| double        | double |
| integer       | double |
| long          | double |
| unsigned_long | double |


## Example

```esql
ROW a=1.8
| EVAL sin=SIN(a)
```


| a:double | sin:double         |
|----------|--------------------|
| 1.8      | 0.9738476308781951 |