Skip to content

Acos

See Also: Math Functions, Asin, Atan, Cos

Purpose

Acos returns the arc cosine of a value.

Return Type

Real

Syntax

(Acos( {expression} ))

What It Does

Acos returns the value in radians of the arc cosine of the value of {expression}. The expression is an angle stated in radians.

Real rArcCos
Move (Acos(.70711)) To rArcCos

If the absolute value of {expression} exceeds 1, DataFlex Error 59 "Floating point exception error" will be triggered, and the function will evaluate to zero.

Notes

  • The value of an acos expression is a number of radians. To convert radians to degrees, multiply them by 180 and divide them by the value of pi.

  • The domain for Acos is [-1, 1]. Values for inputs other than |x| > 1 are UNDEFINED. (ISO/IEC 9899:201x)

  • Acos converts {expression} to a real value and outputs a real value.