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

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