Inhaltsverzeichnis

atan()

#include <cmath>

double atan (double x) 

Liefert den Arcustangens von x.

Parameter

x -

Ergebnis

Rückgabewert: Hauptwert von arctan(x) im Bereich $(- \frac{\pi}{2}, \frac{\pi}{2})$.

Siehe auch

acos(), asin(), atan2(), tan().

Beispiel

atan.cpp
#include <cmath>
#include <iostream>
 
int main()
{
  double x = std::sqrt(3);
  std::cout << "Arcus tangens von " << x << " = " << std::atan(x) << '\n';
}