SourcePoint AMD Help

Table of Contents

acos

Return the arc cosine of an expression.

Syntax

[result =] acos(expr)

Where:

result

specifies a debug object of type real8 to which the function return value is assigned. If result is not specified, the return value is displayed on the next line of the screen.

expr

specifies a number or an expression of type real8 evaluated in radians.

Discussion

The acos function returns the arc cosine of an expression. The return value is in the range 0 to pi. If expr is greater than 1 or less than -1, acos returns the value 0 (zero).

Note: Values returned by this function are in real8 or 64-bit floating point precision. These values are displayed in the Command window rounded to 6 decimal digits. However, assignments and comparisons are performed on the full 64-bit value.ย 

Example

Command input:

acos(-1)

Result:

3.14159

Related Topics: