NAME

atn - arctangent function

SYNOPSIS

v = atn(NumExpr)

DESCRIPTION

Atn returns the arctangent of its argument.  Specifically, atn returns the angle between -pi/2 and pi/2 radians whose tangent is the value of the argument.  The argument NumExpr may be any numeric expression. 

EXAMPLE

The program
	pi = 3.14159265
	v = atn(sqr(3))
	print (v * 180) / pi
produces
	60
to illustrate the fact that the tangent of an angle of 60 degrees is the square root of 3. 

This example also illustrates that to convert from radians to degrees, the radian measure of an angle must be multiplied by 180/pi. 

SEE ALSO

tan

from The Basmark QuickBASIC Programmer’s Manual by Lawrence Leinweber