This chapter contains information about functions for performing mathematical computations, such as trigonometric functions. Most of these functions have prototypes declared in the header file `math.h'.
All of the functions that operate on floating-point numbers accept arguments and return results of type double
. In the future, there may be additional functions that operate on float
and long double
values. For example, cosf
and cosl
would be versions of the cos
function that operate on float
and long double
arguments, respectively. In the meantime, you should avoid using these names yourself. See Reserved Names.
Domain and Range Errors | Detecting overflow conditions and the like. |
Trig Functions | Sine, cosine, and tangent. |
Inverse Trig Functions | Arc sine, arc cosine, and arc tangent. |
Exponents and Logarithms | Also includes square root. |
Hyperbolic Functions | Hyperbolic sine and friends. |
Pseudo-Random Numbers | Functions for generating pseudo-random numbers. |