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

cot

説明​

ラジアン角 x の余接を返します。ラジアン角 x が 0 または NULL の場合、NULL が返されます。

構文​

COT(x);

パラメータ​

x: ラジアン角。DOUBLE がサポートされています。

戻り値​

DOUBLE データ型の値を返します。

例​

mysql> select cot(3.1415926/2);
+------------------------+
| cot(3.1415926 / 2) |
+------------------------+
| 2.6794896585028646e-08 |
+------------------------+
1 row in set (0.25 sec)

mysql> select cot(0);
+--------+
| cot(0) |
+--------+
| NULL |
+--------+
1 row in set (0.03 sec)
Rocky the happy otterStarRocks Assistant

AI generated answers are based on docs and other sources. Please test answers in non-production environments.