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

Compute arc tangent (degrees).

Computes the principal value of the arc tangent of x, expressed in degrees. 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 atan2d if you need to determine the quadrant.

Parameters
xFloating point value.
Returns
Arc tangent of x, in the interval [-90,+90] degrees.
Warning
This function requires the enhanced NBC/NXC firmware.
Examples:
ex_atand.nxc.