Tan Function


Tan Function

Class

System.Math

Syntax

     Dim result As Double = Tan(a) 


a (required; Double)

An angle expressed in radians

Description

The Tan function returns the tangent of an angle, the ratio of two sides of a right triangle.

Usage at a Glance

  • The returned ratio is derived by dividing the length of the side opposite the angle by the length of the side adjacent to the angle.

  • This is a shared member of the System.Math class, so it can be used without an instance.

  • To convert degrees to radians, multiply degrees by p/180.

  • To convert radians to degrees, multiple radians by 180/p.

Version Differences

In VB 6, Tan is an intrinsic VB function. In the .NET platform, it is a member of the System.Math class and not directly part of the VB language.

See Also

Cos Function, Sin Function, Tanh Function




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net