C numerics library
cmath declares a set of functions to compute common mathematical operations and transformations:
Trigonometric functions:
| cos | Compute cosine (function) |
| sin | Compute sine (function) |
| tan | Compute tangent (function) |
| acos | Compute arc cosine (function) |
| asin | Compute arc sine (function) |
| atan | Compute arc tangent (function) |
| atan2 | Compute arc tangent with two parameters (function) |
Hyperbolic functions:
| cosh | Compute hyperbolic cosine (function) |
| sinh | Compute hyperbolic sine (function) |
| tanh | Compute hyperbolic tangent (function) |
Exponential and logarithmic functions:
| exp | Compute exponential function (function) |
| frexp | Get significand and exponent (function) |
| ldexp | Generate number from significand and exponent (function) |
| log | Compute natural logarithm (function) |
| log10 | Compute base-10 logarithm (function) |
| modf | Break into fractional and integral parts (function) |
Power functions
| pow | Raise to power (function) |
| sqrt | Compute square root (function) |
Rounding, absolute value and remainder functions:
| ceil | Round up value (function) |
| fabs | Compute absolute value (function) |
| floor | Round down value (function) |
| fmod | Compute remainder of division (function) |