compute the arctangent
#include <math.h> double atan( double x );
The atan() function computes the principal value of the arctangent of x.
The arctangent in the range (-PI/2, PI/2).
#include <stdio.h> #include <math.h> void main() { printf( "%f\n", atan(.5) ); }
produces the output:
0.463648
ANSI
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | Yes |