![]() ZBasic System Library
48
ZBasic Microcontrollers
Type
Function returning Single
Invocation
Atn(arg)
Parameter
Method
Type
Description
arg
ByVal
Single
The value from which the arc tangent will be computed.
Discussion
The arc tangent function is the inverse of the tangent function. The return value will be the angle,
expressed in radians, whose tangent corresponds to the passed value. The return value will be of type
Single and the value will range from -p/2 to p/2.
Example
Dim val as Single, theta as Single
val = 0.5
theta = Atn(val) ' result is approximately 0.4636
See Also
|