34 of 323
ZBasic System Library 24 ZX Microcontroller Family Atn 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 Atn2, DegToRad, RadToDeg