lang • sin

Sin

Value = Sin ( Angle AS Float )

Computes the sine of an angle. The result lies in the range -1 to 1.

The angle is specified in radians.

Examples

Print Sin(Pi / 2)
1
Dim DegreeAngle, RadianAngle As Float
DegreeAngle = 60
RadianAngle = DegreeAngle * Pi / 180
Print "The sine of "; DegreeAngle; " degree = "; Sin(RadianAngle)
The sine of 60 degree = 0.866025403784

See also