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

# 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
}
```
