Table of Contents

tan

Description

Calculate the tangent of an angle.

Function prototype

double tan <double:Angle>

Arguments

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

Return value

The tangent of the angle, as a double.

Example

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

Comments

None.

See also