ATan

From AutoIt Wiki

Jump to: navigation, search

Calculates the arctangent of a number. Adapted from AutoIt docs.

Contents

[edit] Syntax

$x = ATan(expr)

[edit] Parameters

exprAny valid numeric expression

[edit] Return Value

Returns the trigonometric arctangent of expr. Result is in radians.

[edit] Example

$pi = 4 * ATan(1) ; equal to 3.14159265358979
$radToDeg = 180 / $pi
$y = ATan(1) * $radToDeg ; arctangent of 1 returns 45 deg
Personal tools