Calculate the sine of an angle.
double sin <double:Angle>
Name | Type | Comment |
---|---|---|
Angle | double | An angle, in radians, the sine of which is to be calculated. |
The sine of the angle, as a double.
double angle set angle <zs:DegToRad 30> // convert 30 degrees to radians echo <zs:sin angle> // sin of 30 degrees should be 0.5
… the output of which is written to the event log by echo as:
0.5
None.