- The C Standard Library
I want to use the PI constant and trigonometric functions in some C program. I get the trigonometric functions with include math.h.However, there doesn't seem to be a definition for PI in this header file.
- C Standard Library Resources
- C Programming Resources
- Selected Reading
Description
The C library function double atan(double x) returns the arc tangent of x in radians.
Declaration
Following is the declaration for atan() function.
Parameters
x − This is the floating point value.
Libreria Math H In Dev C Download
Return Value
This function returns the principal arc tangent of x, in the interval [-pi/2,+pi/2] radians.
Example
The following example shows the usage of atan() function.
Libreria Math H In Dev C 4
Let us compile and run the above program that will produce the following result −
math_h.htm