mathLib.acos

The system function mathLib.acos returns the arccosine of an argument, in radians.


sysLib.acos syntax diagram

result

Any numeric or HEX item, as described in Mathematical (system words). The returned value (between 0.0 and pi) is in radians and is converted to the format of result.

numericItem

Any numeric or HEX item, as described in Mathematical (system words). The item is converted to double-precision floating point before the calculation occurs. If the value is not between -1 and 1, an error occurs.

mathLib.acos works on every target system. In relation to Java programs, EGL uses the acos() method in the Java StrictMath class so that the run-time behavior is the same for every Java Virtual Machine.

Example

  result = mathLib.acos(myItem);

Related reference
Mathematical (system words)