Atan Function
Returns the arctangent of the value specified. The arctangent is the angle whose tangent is value.
Syntax
result = Atan( value )
Parameters | ||
value |
The value you want the arc tangent of. |
Notes
The Atan function returns the angle (in radians) of the number passed to it. To express the arctangent in degrees, multiply the result by 180/PI.
Examples
This example uses the Atan function to return the arc tangent of a number.
Dim d as Double
Const PI=3.14159265358979323846264338327950
d=Atan(1) //returns 0.785398 (PI/4 radians)
d=Atan(1)*180/PI // returns 45
Const PI=3.14159265358979323846264338327950
d=Atan(1) //returns 0.785398 (PI/4 radians)
d=Atan(1)*180/PI // returns 45
See Also