Tan (function)

<< Click to Display Table of Contents >>

Tan (function)

Tan(Num)

Returns the tangent of an angle.

The angle must be expressed in radians.

See also: Atn, Cos, Sin

Example:

Sub Main

 Dim Msg, Pi

 Pi = 4 * Atn(1)     ' Calculate Pi

 x = Tan(Pi/4)

 MsgBox "Tan(Pi/4)=" & x

End Sub