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

AltStyle によって変換されたページ (->オリジナル) /