---
title: "math:atan2 — Arc tangent of y/x"
description: "iXML command math:atan2: Arc tangent of y/x."
canonical_url: "https://www.zeyos.com/ixml/ref/math-atan2"
markdown_url: "https://www.zeyos.com/ai/guide/ixml/ref/math-atan2.md"
section: "ixml-reference"
authority: "reference"
language: "en"
source_repository: "https://cloud.zeyos.com/__doc/ixmldoc.xml"
source_sha256: "a23f04e6a98628ca3c273c3b8dd2c33c034cfda3e0f00478d8793074fd2f70dd"
---

# math:atan2 — Arc tangent of y/x

MATH:ATAN2 calculates the inverse tangent of the division of two values (y/x) using the sign of both values to determine the quadrant.

### Attributes
| Name | Type | Default | Description |
| ---- | ---- | ------- | ----------- |
| var | var |  | Result variable name |
| x | float |  | Abscissa |
| y | float |  | Ordinate |

### Children
- (none)

### Parents
- (not restricted in the reference)

### Result
- binding: var; type: float

### Examples

```xml
<output>
	<math:atan2 x="3" y="5"/>
</output>

<!-- 1.0303768265243 -->
```
