Sin
Value = Sin ( Angle AS Float )
计算Angle的正弦,结果位于-1到1之间。
Angle的单位为弧度。
示例
PRINT Sin(Pi/2)
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
参见