Math.Sin Method

Returns the sine of a specified angle

...Math.Sin(angle)

Prerequisites

None

Parameters

angle

A required expression that evaluates to an angle in units of radians. This angle is not limited to values between -π and +π and can be arbitrarily large.

Remarks

Returns the sine of the angle that is specified in radians. The result of this method ranges from –1 to +1.

To convert degrees to radians, multiply the degrees times π/180.

Examples

Dim sin_val As Single
sin_val = Math.Sin(-Math.PI/2) ' Sets sin_val to -1
sin_val = Math.Sin(20.5*Math.PI) ' Sets sin_val to 1
sin_val = Math.Sin(45*Math.PI/180) ' Sets sin_val to 0.7071

See Also

Math Class