NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
float acos ( float  x)
inline

Compute arc cosine.

Computes the principal value of the arc cosine of x, expressed in radians. In trigonometrics, arc cosine is the inverse operation of cosine.

Parameters
xFloating point value in the interval [-1,+1].
Returns
Arc cosine of x, in the interval [0,pi] radians.
Warning
This function requires the enhanced NBC/NXC firmware.
Examples:
ex_acos.nxc.