Skip to content

TAN

  • x: This refers to the numerical value in radians for which the tangent is to be determined. It represents the angle in a unit circle whose tangent is to be calculated.
SELECT TAN(PI()/4);
1.000000000000000

In the given SQL command, we are using the TAN function. This function calculates the tangent of a number. We input PI()/4 as the argument which is the equivalent to 45 degrees in radians. The tangent of 45 degrees is 1, and that’s the result displayed by MySQL.