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

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