tan()

Returns the tangent of the specified angle.

Syntax

tan(RADIAN_EXPR)
Required Parameters
RADIAN_EXPR
Radian expression. This function returns null when it receives an argument value that is not a number.

Usage

json "{}" | eval tan=tan(0) => 0

json "{}" | eval tan=tan(30 * 3.14 / 180) => 0.5769964003928729

json "{}" | eval tan=tan(60 * 3.14 / 180) => 1.7299292200897902

json "{}" | eval tan=tan("0") => null