Purpose
Returns the arc tangent of a numeric value that represents an angle in either degrees or radians.
Syntax
Arc tangent (degrees):
►►─┬─ ARCTAN-DEGREES ─┬─ ( value ) ───────────────────────────────────────────►◄ ├─ ARCTANDEG ──────┤ └─ ATAND ──────────┘
Arc tangent (radians):
►►─┬─ ARCTAN-RADIANS ─┬─ ( value ) ───────────────────────────────────────────►◄ ├─ ARCTANRAD ──────┤ └─ ATANR ──────────┘
Parameters
Returns an arc tangent value in degrees.
Returns an arc tangent value in radians.
Specifies the numeric value representing the angle, in degrees or radians, whose arc tangent is calculated.
Value can be:
Example
In the following example, the arc tangent (degrees) of 1.7321 is calculated and moved to WK-RESULT (PIC S999V9999):
MOVE ATAND(1.7321) TO WK-RESULT. Return value: 60.0007
|
Copyright © 2014 CA.
All rights reserved.
|
|