CodeCogs - An iteractive open source Numerical library Welcome... Login
CodeCogs
shopping cart
OSXWindowsLinux
Search CodeCogs
Numerical Pages

Valid RSS

CMath.h

atan

About | FAQ | Contact
About FAQ Contact

Arc tangent function of one variable

viewed 24494 times


+View other versions (3)
Contents -

Interface

#include <math.h>
double atan (double x)
long atanl (long double x)
float atanf (float x)

#include <complex.h>
complex atan (complex x)
double complex catan (double complex x)
float complex catanf (float complex x)
long double complex catanl (long double complex x)

Description

The atan function computes the principal value of the arc tangent of x, returning a value in the range [-\pi/2, +\pi/2]. The arc tangent is also often denoted as \tan^{-1}(x).

The complex inverse tangent is defined by:
Example 1:
#include <stdio.h>
#include <math.h>
 
int main(void)
{
  double result, x = 0.6325;
  result = atan(x);
  printf("The arc sin of %lf is %lf\n", x, result);
}

Output:
The arc sin of 0.632500 is 0.563974

Special Values

atan ( ±0 ) returns ±0.
atan ( ±∞ ) returns ±\pi/2.

See Also

acos, asin, atan2, cos, cosh, sin, sinh, tan, tanh

Standards

The atan function conforms to ISO/IEC 9899:1999(E).

Compatibility

DOSUNIXWindowsANSI CC++ only
atanl
Real atan
Complex atan
Complex catan

Last Modified: 2009-11-01 08:40:44     Page Rendered: 2010-03-14 08:20:06

Page Comments

Format Excel Equations

  You must login to leave a messge


Valid CSS!   Valid XHTML 1.0 Transitional