ATAN()
Description
The ATAN() function returns the arctangent(given in radians) of the input number.
Syntax
1. > ATAN(number)
Arguments
| Arguments | Description |
|---|---|
| number | Required. 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(0,1);
6. mysql> select atan(a),atan(tan(b)) from t1;
7. +--------------------+--------------------------+
8. | atan(a) | atan(tan(b)) |
9. +--------------------+--------------------------+
10. | 0.7853981633974483 | -0.000002535181590113463 |
11. | 0 | 1 |
12. +--------------------+--------------------------+
13. 2 rows in set (0.00 sec)
