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

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