Skip to main content

Categories: Math

TAN

Computes the tangent of a value in radians.

Syntax​

TAN(numeric_expression double) → double​

  • numeric_expression: The number in radians.

Examples

TAN example
SELECT TAN(180.8)
-- -6.259341891872157
Calculate the tangent of pi divided by 4
SELECT TAN(PI() / 4)
-- 0.9999999999999999
Return NULL for a NULL input
SELECT TAN(NULL)
-- null

TAN(numeric_expression int64) → double​

  • numeric_expression: The number in radians.

Examples

TAN example
SELECT TAN(1200)
-- -0.08862461268886584

TAN(numeric_expression int32) → double​

  • numeric_expression: The number in radians.

Examples

TAN example
SELECT TAN(1200)
-- -0.08862461268886584
Calculate the tangent of 0
SELECT TAN(0)
-- 0.0

TAN(numeric_expression float) → double​

  • numeric_expression: The number in radians.

Examples

TAN example
SELECT TAN(180.8)
-- -6.259341891872157