Tuesday, August 31, 2010

Visual Basic Math Function : Sin

Purpose : The Sin function returns the sine of an angle

Syntax :
Sin ( dblAngle )

dblAngle : Numeric expression for which you want to return the sine.

Dim dblResult as Double
dblResult = Sin ( 4.93 )

The sine of 4.93 is assigned to the variable dblResult. Sin is used to determine the sine of an angle. The function expects the angle to be expressed in radians; therefore, if the angle is in degrees, it must be converted by using the formula.

Radians = Degrees X pi / 180

No comments:

Post a Comment