Sin Function

   
Sin Function

Class

System.Math

Syntax

 Sin(   a   ) 
a (required; Numeric)

An angle expressed in radians

Return Value

A Double containing the sine of an angle

Description

Returns the ratio of two sides of a right triangle in the range -1 to 1

Rules 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, so it can be used without creating any objects.

Programming Tips and Gotchas

  • You can convert degrees to radians using the formula:

     radians = degrees * (pi/180) 
  • You can convert radians to degrees using the formula:

     degrees = radians * (180/pi) 

See Also

Cos Function, Tan Function

   


VB.Net Language in a Nutshell
VB.NET Language in a Nutshell
ISBN: B00006L54Q
EAN: N/A
Year: 2002
Pages: 503

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