atan[]

Returns the arc tangent of number, expressed in degrees.

The atan[] function in math is a function that returns the arc tangent of a number. The arc tangent, or inverse tangent, of a number is the angle (in degrees) whose tangent is equal to the given number. The output of the function will be in the range of -90 to 90 (degrees). For example, atan[1] would return 45 and atan[0] would return 0.

The atan2[] function is also available and it return the angle whose tangent is y/x, using the signs of both arguments to determine the correct quadrant of the result.

Syntax

atan[x]

Parameters

x Number whose arc tangent is computed.
Return Value Principal arc tangent of x, in the interval [-90,90] degrees.
If the argument is out of interval, return value is NaN.

Examples

#<result> = atan[0]
(print,#<result>)

result: 0


#<result> = atan[1]
(print,#<result>)

result: 45

See also

sin, asin, cos, acos, tan, atan2, pi