Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

atan, atanf, atanl - Arcustangens

&pagelevel(4)&pagelevel

Definition

#include <math.h>

double atan(double x);
float atanf(float x); (C11)
long double atanl(long double x); (C11)

Diese Funktionen sind die Umkehrfunktionen zu den entsprechenden tan-Funktionen und berechnen zu einer Gleitkommazahl x den entsprechenden Winkel im Bogenmaß. 

Returnwert

arcustangens(x)

 


Eine Gleitpunktzahl entsprechend des Funktionstyps aus dem Intervall [-pi/2, +pi/2]

Definition

Folgendes Programm berechnet zu einem eingelesenen Wert den entsprechenden Arcustangens und gibt das Ergebnis aus.

#include <math.h>
#include <stdio.h>
int main(void)
{
  double x;
  printf("Von welcher Zahl wollen Sie den ATAN berechnen: \n");
  if( scanf("%lf", &x) == 1)   /* Überprüft die Eingabe einer Zahl */
    printf("x = %g : atan(%g) = %g\n", x, x, atan(x));
  return 0;
}

Siehe auch  atan2, tan, sin, asin, cos, acos