[discrete]
[[esql-tan]]
=== `TAN`

*Syntax*

[.text-center]
image::esql/functions/signature/tan.svg[Embedded,opts=inline]

*Parameters*

`n`::
Numeric expression. If `null`, the function returns `null`.

*Description*

{wikipedia}/Sine_and_cosine[Tangent] trigonometric function. Input expected in
radians.

*Supported types*

include::types/tan.asciidoc[]

*Example*

[source.merge.styled,esql]
----
include::{esql-specs}/floats.csv-spec[tag=tan]
----
[%header.monospaced.styled,format=dsv,separator=|]
|===
include::{esql-specs}/floats.csv-spec[tag=tan-result]
|===
