What arctan returns

If an(heta)=xan( heta)=x, then heta=arctan(x)heta=arctan(x).

The principal output stays between - rac{pi}{2} and rac{pi}{2}.

That makes arctan useful for slope angles, right-triangle recovery, and direction calculations.

Reading the result

  • Radians are standard in calculus and many programming libraries.
  • Degrees are easier for surveying, drafting, and classroom geometry.
  • The same tangent value also acts like rise over run for slope percentage.