atan2

The angle of (b, a): atan2(y = a, x = b) (hint_math).

ScalarDeterministic

Flags

Flag Value
Kind scalar
Nulls a null argument gives null
Deterministic yes
Order matters no
Decomposable no

Example

A pipeline from the language's tested corpus that uses atan2, over the example tables.

Hint
from orders
derive {a = sin(price ?? 0e0), b = cos(price ?? 0e0), c = atan2(price ?? 0e0, 1e0), d = erf(5e-1), g = lgamma(price ?? 1e0), p = pow(price ?? 0e0, 2e0)}

In a plan:

JSON
{
  "args": [
    {
      "args": [
        {
          "col": 4
        },
        {
          "lit": 0,
          "type": {
            "kind": "float64"
          }
        }
      ],
      "fn": "coalesce"
    },
    {
      "lit": 1,
      "type": {
        "kind": "float64"
      }
    }
  ],
  "fn": "atan2"
}