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

Compute arc tangent.

Computes the principal value of the arc tangent of x, expressed in radians. In trigonometrics, arc tangent is the inverse operation of tangent. Notice that because of the sign ambiguity, a function cannot determine with certainty in which quadrant the angle falls only by its tangent value. You can use atan2() if you need to determine the quadrant.

See Also
atan2()
Parameters
xFloating point value.
Returns
Arc tangent of x, in the interval [-pi/2,+pi/2] radians.
Warning
This function requires the enhanced NBC/NXC firmware.
Examples:
ex_atan.nxc.