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

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