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 Atan will range from -PI to PI radians.
To convert from radians to degrees, use the RadToDeg function.
See Also
Abs, Acos, Asin, Atan2, Cos, DegToRad, RadToDeg, Sgn, Sin, Tan, Val
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