Previous Topic: SUBSTRINGNext Topic: TIMEEXT


TANGENT

Purpose

Returns the tangent of a numeric value that represents an angle in either degrees or radians.

Syntax

Tangent (degrees):

►►─┬─ TANGENT-DEGREES ─┬─ ( value ) ──────────────────────────────────────────►◄
   └─ TANDeg ──────────┘

Tangent (radians):

►►─┬─ TANGENT-RADIANS ─┬─ ( value ) ──────────────────────────────────────────►◄
   └─ TANRad ──────────┘

Parameters

TANGENT-DEGREES

Returns the tangent value in degrees.

TANGENT-RADIANS

Returns the tangent value in radians.

value

Specifies the numeric value representing the angle, in degrees or radians, whose tangent is calculated.

Value can be:

Value cannot equal values such as -270, +270, -90, or +90 in the tangent (degrees) function, and cannot equal values such as -&pi./2 or +&pi./2 in the tangent (radians) function.

Usage

Example

In the following example, the tangent (degrees) of 60 is calculated and moved to WK-RESULT (PIC S999V9999):

MOVE TAND(60) TO WK-RESULT.
Returned value: 1.7321