Atan Function
Returns the arctangent of a numeric expression.
Syntax
Atan(number)
Parameters
- number
- Specify the tangent of the angle as a real number value.
Return Values
Real value, in radians, representing the arctangent of the parameter number.
Description
Atan returns the arctangent of the numeric expression. The numeric expression (number) may be any numeric value. The value returned by Asin will range from -PI / 2 to PI / 2 radians.
To convert from radians to degrees, use the RadToDeg function.
See Also
Abs Function, Acos Function, Asin Function, Atan2 Function, Cos Function, DegToRad Function, RadToDeg Function, Sgn Function, Sin Function, Tan Function, Val Function
Atan Function Example
Function atantest
Real x, y
x = 0
y = 1
Print "Atan of ", x, " is ", Atan(x)
Print "Atan of ", y, " is ", Atan(y)
Fend