Tan (function)

Syntax

Tan(angle)

Description

Returns a Double representing the tangent of angle.

Comments

The angle parameter is a Double value given in radians.

Example

This example computes the tangent of pi/4 radians (45 degrees).

Sub Main()
  c# = Tan(Pi / 4)
  MsgBox "The tangent of 45 degrees is: " & c#
End Sub

See Also

Sin (function); Cos (function); Atn (function).

More information

T