Die Funktion atan () berechnet den Arcustangens eines Arguments.
C atan () Prototyp
doppeltes Atan (doppeltes x);
Die Funktion atan () nimmt ein einzelnes Argument als Doppel und gibt den Wert im Bogenmaß zurück.
Der zurückgegebene Wert von atan () ist vom Typ double.
Zum besseren Verständnis von atan ():
(Mathematik) tan-1x = atan (x) (In C-Programmierung)
Es ist in der Header-Datei definiert.
C atan () Bereich
Die Bibliotheksfunktion atan () nimmt einen beliebigen Wert von negativ nach positiv an.
Beispiel: C atan () Funktion
#include #include #define PI 3.141592654 int main() ( double num = 1.0; double result; result = atan(num); printf("Inverse of tan(%.2f) = %.2f in radians", num, result); // Converting radians to degrees result = (result * 180) / PI; printf("Inverse of tan(%.2f) = %.2f in degrees", num, result); return 0; )
Ausgabe
Inverse von cos (1,00) = 0,79 im Bogenmaß Inverse von cos (1,00) = 45 in Grad








