ATAN()

函数说明

ATAN() 函数返回给定数值的反正切(用弧度表示)。

函数语法

  1. > ATAN(number)

参数释义

参数说明
number必要参数,可取任意数值数据类型

示例

  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(0,1);
  5. mysql> select atan(a),atan(tan(b)) from t1;
  6. +--------------------+--------------------------+
  7. | atan(a) | atan(tan(b)) |
  8. +--------------------+--------------------------+
  9. | 0.7853981633974483 | -0.000002535181590113463 |
  10. | 0 | 1 |
  11. +--------------------+--------------------------+
  12. 2 rows in set (0.00 sec)