- 카테고리:
숫자 함수 (삼각)
ACOS¶
입력값의 역코사인(아크 코사인)을 계산합니다. 결과는 구간 [0, pi] 에 있는 숫자입니다.
구문¶
ACOS( <input_expr> )
인자¶
input_exprThe value or expression to operate on. Must be greater than or equal to -1.0 and less than or equal to +1.0. The data type must be FLOAT or DECFLOAT.
반환¶
If the input expression is of type DECFLOAT, the returned type is DECFLOAT. Otherwise, the returned type is FLOAT.
라디안(도가 아님) 단위의 아크 코사인을 범위 [0, pi] 의 값으로 반환합니다.
예¶
SELECT ACOS(0), ACOS(0.5), ACOS(1);
+-------------+-------------+---------+
| ACOS(0) | ACOS(0.5) | ACOS(1) |
|-------------+-------------+---------|
| 1.570796327 | 1.047197551 | 0 |
+-------------+-------------+---------+