The C ATAN Function is a Math Library Function. It used to calculate Trigonometry Arc Tangent value for the specified expression or value. The syntax of the atan in C Programming is
double atan(double number);
ATAN Function in C Example
The atan Function in math library helps you to find the trigonometric Arc Tangent for the specified values. This program, ask the user to enter their own value, and then find the arc tangent value of the user entered one
TIP: Please refer to the C TAN Function article in C Programming to calculate the Tangent value of a specified expression.
#include <stdio.h> #include <math.h> int main() { double atanValue, number; printf(" Please Enter any Floating Value to calculate Arc Tangent : "); scanf("%lf", &number); atanValue = atan(number); printf("\n The Arc Tangent value of %lf = %f ", number, atanValue); return 0; }
