ID EN
Mathematical Functions

TAN(X)

MySQL 8.4

Returns the tangent of X, where X is given in radians. Returns NULL if X is NULL.

Syntax

MYSQL
SELECT TAN(PI());
-1.2246063538224e-16
SELECT TAN(PI()+1);
1.5574077246549

Examples

Example
MYSQL
SELECT TAN(PI());
-1.2246063538224e-16
SELECT TAN(PI()+1);
1.5574077246549