Sin Function


Sin Function

Class

System.Math

Syntax

     Dim result As Double = Sin  (a) 


a (required; Double)

An angle expressed in radians

Description

The Sin function returns the sine of an angle, the ratio of two sides of a right triangle, in the range -1 to 1.

Usage at a Glance

  • The ratio is determined by dividing the length of the side opposite the angle by the length of the hypotenuse.

  • 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, multiply radians by 180/p.

Version Differences

In VB 6, Sin 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, Tan 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