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

ATAN2

説明

'y' / 'x' の逆正接を返します。

構文

ATAN2(<y>, <x>)

パラメータ

Parameterデスクリプション
<x>原点 (0,0) からx軸に沿った水平距離(座標)を表す値。
<y>原点 (0,0) からy軸に沿った垂直距離(座標)を表す値。

Return Value

パラメータ y / x のatan2値。

Example

select atan2(0.1, 0.2);
+---------------------+
| atan2(0.1, 0.2) |
+---------------------+
| 0.46364760900080609 |
+---------------------+
select atan2(1.0, 1.0);
+---------------------+
| atan2(1.0, 1.0) |
+---------------------+
| 0.78539816339744828 |
+---------------------+