MySQL TAN() Function

In MySQL, the TAN() function returns the tangent of the specified number.

TAN() Syntax

Here is the syntax of MySQL TAN() function:

TAN(number)

Parameters

number
Required. An angle, in radians.

Return value

In MySQL, the TAN() function returns the tangent of the specified number.

If the parameter number is NULL, the TAN() function will return NULL.

TAN() Examples

SELECT
    TAN(2.5),
    TAN(0.2),
    TAN(-0.5),
    TAN(-0.2),
    TAN(0),
    TAN(PI()),
    TAN(NULL)\G

output

*************************** 1\. row ***************************
 TAN(2.5): 0.5984721441039565
 TAN(0.2): 0.19866933079506122
TAN(-0.5): -0.479425538604203
TAN(-0.2): -0.19866933079506122
   TAN(0): 0
TAN(PI()): 1.2246467991473532e-16
TAN(NULL): NULL