# ATAN2

ATAN2(`x`, `y`, `radians)`

Returns the arc tangent of an ordered pair (x,y). Default produces result in radians.

### Arguments <a href="#arguments" id="arguments"></a>

| Argument  | Description                                                                      |
| --------- | -------------------------------------------------------------------------------- |
| `x`       | X-value of ordered pair.                                                         |
| `y`       | Y-value of ordered pair.                                                         |
| `radians` | True to produce output in radians (default), false to produce output in degrees. |

### Output <a href="#output" id="output"></a>

The arc tangent of an ordered pair (x,y).

### Example <a href="#examples" id="examples"></a>

{% embed url="<https://datawrapper.dwcdn.net/9h0hO/2/>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cascade.io/cascade/functions-and-expressions/functions/math/atan2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
