atan

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the atan of <number>
atan(<number>)
Summary

Returns the arc tangent of a number in radians.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
number

A positive or negative number, or an expression that evaluates to a number.

Example
atan(0)
atan(tan(-1))
the atan of vectorMagnitude
Values
NameTypeDescription
return

The atan function returns a number between -pi/2 and pi/2.

The result

The result of the atan function is returned in radians. To get this result in degrees, use the following custom function:

function atanInDegrees pMagnitude
    return atan(pMagnitude) * 180 / pi
end atanInDegrees
RelatedKeyword: inverse
Constant: pi
Function: tan
Control Structure: function
Glossary: radian, custom function, return, degree, math operation
Description

Use the atan function to find the arc tangent of a number.

The arc tangent of number is an angle whose tangent is equal to number. In other words, atan is an inverse of the tan function.

If a math operation on finite inputs produces a non-finite output, an execution error is thrown. See math operations for more information.

Tagsmath