sin


描述

In a right angled triangle sin(val) = Opposite / Hypotenuse where val is one of the three angles.


语法:

sin(val);


参数 描述
val The angle (in radians) to return the sine of.


Returns:

实数


例如:

val = sin( pi/2 );

这将会把val设为1。