Wilang Documentation1.0.0+4

atan2#

Computes the principal value of the arc tangent of y/x in radians.

Available in: math cells, REPL.

Syntax#

atan2(y, x)

Arguments and behavior#

Bare numeric angles are radians. Direct trigonometric functions also accept angle units such as deg. Inverse trigonometric results are numbers; attach rad before converting to degrees. The example returns scalar (number).

Example#

Edit the inputs, then use Run or Reset. Changes stay in this example.

Example
atan2(2, 2) / pi

Expected result: 0.25.

See also#

sin · cos · tan

All functions · Math guides