September 1998
Intermediate to advanced
848 pages
20h 13m
English
Table F.6 lists the functions of the math library. The header file defines a macro HUGE_VAL that is used as the return value for functions when the magnitude of the result exceeds the largest representable value.
| Prototype | Description |
|---|---|
| double acos(double x); | Returns the angle (0 to π radians) whose cosine is x. |
| double asin(double x); | Returns the angle (−π/2 to π/2 radians) whose sine is x. |
| double atan(double x); | Returns the angle (−π/2 to π/2 radians) whose tangent is x. |
| double atan2(double y, double x); | Returns the angle (−π to π radians) whose tangent is y / x. |
| double cos(double x); | Returns the cosine of x (x in radians). |
| double sin(double x); | Returns the sine of x (x in radians). |
| double tan(double ... |
Read now
Unlock full access