Purpose
Returns the arc cosine of a numeric value that represents an angle in either degrees or radians.
Syntax
Arc cosine (degrees):
►►─┬─ ARCCOSINE-DEGREES ─┬─ ( value ) ────────────────────────────────────────►◄ ├─ ARCCOSDEG ─────────┤ └─ ACOSD ─────────────┘
Arc cosine (radians):
►►─┬─ ARCCOSINE-RADIANS ─┬─ ( value ) ────────────────────────────────────────►◄ ├─ ARCCOSRAD ─────────┤ └─ ACOSR ─────────────┘
Parameters
Returns an arc cosine value in degrees.
Returns an arc cosine value in radians.
Specifies the numeric value representing the angle, in degrees or radians, whose arc cosine is calculated.
Value can be:
Value must be a value ranging from -1 to +1.
Example
In the following example, the arc cosine (degrees) of -0.5 is calculated and moved to WK-RESULT (PIC S999V9999):
MOVE ACOSD(-0.5) TO WK-RESULT. Returned value: 120.
|
Copyright © 2014 CA.
All rights reserved.
|
|