Atn (function)

<< Click to Display Table of Contents >>

Atn (function)

Atn(Num)

Returns the arctangent of a number.

The result is expressed in radians.

See also: Cos, Sin, Tan

Example:

Sub AtnExample

 Dim Msg, Pi            ' Declare variables

 Pi = 4 * Atn(1)        ' Calculate Pi

 Msg = "Pi = " & Str(Pi)

 MsgBox Msg             ' Result: "Pi = 3.1415..."

End Sub