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

# tan

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

## tan(angle: Number): Number

Returns the trigonometric tangent 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 `tan` behaves with different inputs.

#### Source

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

#### Output

```Json
{
   "tan0": 0.0,
   "tan13": 0.13073731800446006,
   "tan-1": -1.5574077246549023
 }
```
