メインコンテンツまでスキップ
バージョン: 26.x

ACOSH

説明

xの双曲線逆余弦を返します。x1未満の場合はNULLを返します。

構文

ACOSH(<x>)

パラメータ

Parameterデスクリプション
<x>双曲線逆余弦を計算する値

Return Value

パラメータxの双曲線逆余弦値。

Special Cases

  • xが1の場合、0を返す
  • xが1未満の場合、NULLを返す
  • xがNaNの場合、NaNを返す
  • xが正の無限大の場合、Infinityを返す
  • xが負の無限大の場合、NULLを返す
  • xがNULLの場合、NULLを返す

Examples

select acosh(0.0);
+------------+
| acosh(0.0) |
+------------+
| NULL |
+------------+
select acosh(-1.0);
+-------------+
| acosh(-1.0) |
+-------------+
| NULL |
+-------------+
select acosh(1.0);
+------------+
| acosh(1.0) |
+------------+
| 0 |
+------------+
select acosh(1.0000001);
+-------------------------+
| acosh(1.0000001) |
+-------------------------+
| 0.0004472135918947727 |
+-------------------------+
select acosh(cast('nan' as double));
+----------------------------+
| acosh(cast('nan' AS DOUBLE)) |
+----------------------------+
| NaN |
+----------------------------+
select acosh(cast('inf' as double));
+----------------------------+
| acosh(cast('inf' AS DOUBLE)) |
+----------------------------+
| Infinity |
+----------------------------+
select acosh(10.0);
+-------------------+
| acosh(10.0) |
+-------------------+
| 2.993222846126381 |
+-------------------+