TAN()

Description

The TAN() function returns the tangent of input number(given in radians).

Syntax

  1. > TAN(number)

Arguments

ArgumentsDescription
numberRequired. Any numeric data type supported now.

Examples

  1. drop table if exists t1;
  2. create table t1(a int,b float);
  3. insert into t1 values(1,3.14159);
  4. insert into t1 values(-1,-3.14159);
  5. mysql> select tan(a),tan(b) from t1;
  6. +--------------------+--------------------------+
  7. | tan(a) | tan(b) |
  8. +--------------------+--------------------------+
  9. | 1.557407724654902 | -0.000002535181590118894 |
  10. | -1.557407724654902 | 0.000002535181590118894 |
  11. +--------------------+--------------------------+
  12. 2 rows in set (0.01 sec)