Copy as Markdown View as Markdown (opens in new tab) View on GitHub (opens in new tab) Open in... ChatGPT (opens in new tab) Claude (opens in new tab) Perplexity (opens in new tab) tan 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 Name Description angle Number of radians in an angle. Example This example shows how tan behaves with different inputs. Source %dw 2.0 import * from dw::util::Math output application/json --- { "tan0": tan(0), "tan13": tan(0.13), "tan-1": tan(-1) } Output { "tan0": 0.0, "tan13": 0.13073731800446006, "tan-1": -1.5574077246549023 }