Loading...
Select Version
&pagelevel(4)&pagelevel
Definition | #include <math.h> double atan(double x); These functions are the inverse function of the corresponding |
Return val. | arc tangent(x) |
Example | The following program calculates and prints the arc tangent of an input value: #include <math.h> #include <stdio.h> int main(void) { double x; printf("For which number do you want ATAN computed?: \n"); if( scanf("%lf", &x) == 1) /* Verifies the input of a number */ printf("x = %g : atan(%g) = %g\n", x, x, atan(x)); return 0; } |
See also | atan2, tan, sin, asin, cos, acos |