[Previous]
[Contents]
[Next]

atan()

compute the arctangent

Synopsis:

#include <math.h>
double atan( double x );

Description:

The atan() function computes the principal value of the arctangent of x.

Returns:

The arctangent in the range (-PI/2, PI/2).

Examples:

#include <stdio.h>
#include <math.h>

void main()
  {
    printf( "%f\n", atan(.5) );
  }

produces the output:

0.463648

Classification:

ANSI

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

acos(), asin(), atan2()


[Previous]
[Contents]
[Next]