The tangent functions return the tangent of a numeric value that represents an angle in either degrees or radians.
Syntax:
►►─┬─ TAND ────────────┬─ (value) ────────────────────────────────────────────►◄ ├─ TANDEG ──────────┤ └─ TANGENT-DEGREES ─┘ ►►─┬─ TANR ────────────┬─ (value) ────────────────────────────────────────────►◄ ├─ TANRAD ──────────┤ └─ TANGENT-RADIANS ─┘
Invocation names:
TAND TANR TANDEG TANRAD TANGENT-DEGREES TANGENT-RADIANS
Parameters:
Specifies the numeric value representing the angle, in degrees or radians, whose tangent is calculated.
The following rules apply to using value:
(n * 180) + 90
Thus, value cannot equal values such as -270, +270, -90, or +90 for this function.
(n * X) + X/2
Thus, value cannot equal values such as -X/2 or +X/2 for this function.
Example:
This example calculates the tangent of 60 (in degrees):
compute 'tangent' = tand(60) TANGENT = 1.7321
|
Copyright © 2013 CA.
All rights reserved.
|
|