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