namespace cpp {}

C++ lernen, kennen, anwenden

Benutzer-Werkzeuge

Webseiten-Werkzeuge


Action disabled: source
kennen:lib:atan

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

Beispiel

atan.cpp
#include <cmath>
#include <iostream>
 
int main()
{
  double x = std::sqrt(3);
  std::cout << "Arcus tangens von " << x << " = " << std::atan(x) << '\n';
}
kennen/lib/atan.txt · Zuletzt geändert: 2019-11-20 15:01 von 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki