---
schema_version: "1"
id: 6ba321e63bf7f11aa97e51426235eb003073994e08ad238cb0a53f6d5e8f1b52
title: sin
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.6/dw-math-functions-sin.md
canonical_url: https://docs.mulesoft.com/dataweave/2.6/dw-math-functions-sin
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 238cd0186eb880a0eb926d7f40d00428528243579443053f6b6a8c85d8b3d7cd
description: MuleSoft Documentation Site
release: "2.6"
latest: false
---
---
product: DataWeave
version: 2.6
---

# sin

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

## sin(angle: Number): Number

Returns the trigonometric sine of an angle from a given number of radians.

_Introduced in DataWeave version 2.4.0._

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><code>angle</code></p></td><td><div><div><p>Number of radians in an angle.</p></div></div></td></tr></tbody></table>

### Example

This example shows how `sin` behaves with different inputs.

#### Source

```DataWeave
%dw 2.0
import * from dw::util::Math
output application/json
---
{
  "sin0": sin(0),
  "sin13": sin(0.13),
  "sin-1": sin(-1)
}
```

#### Output

```Json
{
  "sin0": 0.0,
  "sin13": 0.12963414261969486,
  "sin-1": -0.8414709848078965
}
```
