$acos

Return the arc cosine of X.

$acos(X)

Example: vResult = $acos(1 / 2)

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.

Values of $procerror Commonly Returned Following this Function
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)

Related Topics