Parameters
X—numeric value in the range -1 through 1, inclusive.
Return Values
Calculated arc cosine value.
If an error occurs, $procerror contains a negative value that identifies the exact error.
Value | Error constant | ` |
---|---|---|
-1203 | <UPROCERR_RANGE> | Value out of range. |
Use
Allowed in all component types.
Description
The $acos function calculates the arc cosine of X, that is, it returns that angle, in radians, whose cosine (see $cos) is X.
Using $acos
The following example returns the arc cosine of the given expression:
$ARCOSIN$ = $acos(1 / 2)