ACOS()¶
Function Description¶
The ACOS() function returns the cosine (denoted in radians) of the given value.
Function Syntax¶
> ACOS(number)
Parameter definition¶
Parameters |
Description |
|---|---|
number |
Required parameters, any numerical data type can be taken |
Example¶
drop table if exists t1;
create table t1(a float,b int);
insert into t1 values(0.5,1);
insert into t1 values(-0.5,-1);
mysql> select acs(a),acos(b) from t1;
+------------------------------------------------------------------------------------------------------------------------------
| acos(a) | acos(b) |
+------------------------------------------------------------------------------------------------------------------------------
| 1.0471975511965976 | 0 |
| 2.0943951023931957 | 3.141592653589793 |
+------------------------------------------------------------------------------------------------------------------------------
2 rows in set (0.01 sec)