The header file <math.h> defines a number of types, macros, and mathematical functions.
| Classification functions | |
| isfinite | Is floating value finite? |
| isinf | Is floating value an infinity? |
| isnan | Is floating value a NaN? |
| Trigonometric functions | |
| sin | Compute sine of a double |
| sinf | Compute sine of a float |
| cos | Compute cosine of a double |
| cosf | Compute cosine of a float |
| tan | Compute tangent of a double |
| tanf | Compute tangent of a float |
| Inverse trigonometric functions | |
| asin | Compute inverse sine of a double |
| asinf | Compute inverse sine of a float |
| acos | Compute inverse cosine of a double |
| acosf | Compute inverse coside of a float |
| atan | Compute inverse tangent of a double |
| atanf | Compute inverse tangent of a float |
| atan2 | Compute inverse tangent of a ratio of doubles |
| atan2f | Compute inverse tangent of a ratio of floats |
| Inverse hyperbolic functions | |
| acosh | Compute inverse hyperbolic cosine of a double |
| acoshf | Compute inverse hyperbolic cosine of a float |
| asinh | Compute inverse hyperbolic sine of a double |
| asinhf | Compute inverse hyperbolic sine of a float |
| atanh | Compute inverse hyperbolic tangent of a double |
| atanhf | Compute inverse hyperbolic tangent of a float |
| Hyperbolic functions | |
| cosh | Compute hyperbolic cosine of a double |
| coshf | Compute hyperbolic cosine of a float |
| sinh | Compute hyperbolic sine of a double |
| sinhf | Compute hyperbolic sine of a float |
| tanh | Compute hyperbolic tangent of a double |
| tanhf | Compute hyperbolic tangent of a float |
| Exponential and logarithmic functions | |
| exp | Compute exponential of a double |
| expf | Compute exponential of a float |
| frexp | Set exponent of a double |
| frexpf | Set exponent of a float |
| ldexp | Adjust exponent of a double |
| ldexpf | Adjust exponent of a float |
| log | Compute natural logarithm of a double |
| logf | Compute natural logarithm of a float |
| log10 | Compute common logarithm of a double |
| log10f | Compute common logarithm of a float |
| Power functions | |
| sqrt | Compute square root of a double |
| sqrtf | Compute square root of a float |
| cbrt | Compute cube root of a double |
| cbrtf | Compute cube root of a float |
| pow | Raise a double to a power |
| powf | Raise a float to a power |
| Absolute value functions | |
| fabs | Compute absolute value of a double |
| fabsf | Compute absolute value of a float |
| hypot | Compute complex magnitude of two doubles |
| hypotf | Compute complex magnitude of two floats |
| Remainder functions | |
| fmod | Compute remainder after division of two doubles |
| fmodf | Compute remainder after division of two floats |
| modf | Break a double to integer and fractional parts |
| modff | Break a float to integer and fractional parts |
| Maximum, minimum, and positive difference functions | |
| fmax | Compute maximum of two doubles |
| fmaxf | Compute maximum of two floats |
| fmin | Compute minimum of two doubles |
| fminf | Compute minimum of two floats |
| Nearest integer functions | |
| ceil | Compute smallest integer not greater than a double |
| ceilf | Compute smallest integer not greater than a float |
| floor | Compute largest integer not greater than a double |
| floorf | Compute largest integer not greater than a float |