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
Returns the tangent value in degrees.
Returns the tangent value in radians.
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
(n * 180) + 90
(n * &pi.) + &pi./2
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
|
Copyright © 2014 CA.
All rights reserved.
|
|