Table of Contents

sin

Description

Calculate the sine of an angle.

Function prototype

double sin <double:Angle>

Arguments

Name Type Comment
Angle double An angle, in radians, the sine of which is to be calculated.

Return value

The sine of the angle, as a double.

Example

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

Comments

None.

See also