- カテゴリ:
数値関数 (三角関数)
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 |
+-------------+-------------+---------+