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
Math