Next: atan2, atan2f—arc tangent of y/x, Previous: asinh, asinhf—inverse hyperbolic sine, Up: Mathematical Functions (math.h) [Contents][Index]
atan, atanf—arc tangentSynopsis
#include <math.h> double atan(double x); float atanf(float x);
Description
atan computes the inverse tangent (arc tangent) of the input value.
atanf is identical to atan, save that it operates on floats.
Returns
atan returns a value in radians, in the range of -pi/2 to pi/2.
Portability
atan is ANSI C. atanf is an extension.