Syntax
=ATAN2(x_num, y_num)Arguments
| Argument | Required | Description |
|---|---|---|
x_num | Required | The x coordinate of the point |
y_num | Required | The y coordinate of the point |
How to use ATAN2
ATAN2 takes 2 required arguments. Type =ATAN2( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.
Examples
Each result below was calculated by the SheetsBat formula engine.
=ATAN2(1, 1)Result =ATAN2(-1, -1)Result =ATAN2(0, 0)Result Related math functions
- ARABICConverts a Roman numeral written as text to a number.
- ASINReturns the arcsine of a number, in radians.
- ASINHReturns the inverse hyperbolic sine of a number.
- ATANReturns the arctangent of a number, in radians.
- ATANHReturns the inverse hyperbolic tangent of a number.
- BASEConverts a number to text in another base (radix), padded with zeros to a minimum length.
- CEILINGRounds a number up to the nearest multiple of significance.
- CEILING.MATHRounds a number up to the nearest integer or multiple; mode chooses the direction for negative numbers.
- CEILING.PRECISERounds a number up to the nearest multiple, whatever the sign of the number or significance.