Atn
Function Atn( numeric expression )
Returns the arctangent of numeric expression.
Syntax a = Atn( b )
Remarks
Atn returns the arctangent (inverse tangent) of an angle, numeric expression.
The angle returned will be expressed in degrees, in the range -90 to 90 degrees.
If you desire to use radians rather than degrees the result can be converted
to radians as follows:
To convert degrees to radians, multiply by (pi / 180)
To convert radians to degrees, multiply by (180/pi)
See Also:
Example Script
NUMBER i = 45
NUMBER pi = 3.14159265359
PRINT "The arctangent of 45 degrees is "; ATN(TAN(i))
PRINT "Expressed in radians that is "; ATN(TAN(i)) * pi / 180
Script Output
The arctangent of 45 degrees is 88.7269699799433
Expressed in radians that is 1.54857776146828