acos()

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

  MathLib.acos(numericField mathLibNumber in)
  returns (result mathLibTypeDependentResult)
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.
numericField
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 runtime behavior is the same for every Java Virtual Machine.

Example

  result = MathLib.acos(myItem);

Related reference
EGL library MathLib

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.