4.3. The math library, mathlib
In addition to the functions defined by the ISO C standard,
mathlib provides the following C99 functions and macros. These are
in addition to those provided by the floating-point library, fplib
(see The software floating‑point library,
fplib):
Determine the type of a floating‑point number (fpclassify)
Determine if a number is finite (isfinite)
Determine if a number is infinite (isinf)
Determine if a number is a NaN (isnan)
Determine if a number is normal (isnormal)
Return the sign bit of a number (signbit)
Copy sign functions (copysign, copysignf)
Comparison macros (isgreater, isgreaterequal, isless, islessequal,
islessgreater, isunordered)
Inverse hyperbolic functions (acosh, asinh, atanh)
Cube root (cbrt)
Error functions (erf, erfc)
One less than exp(x) (expm1)
Hypotenuse function (hypot)
The logarithm of the gamma function (lgamma)
Logarithm of one more than x (log1p)
IEEE 754 remainder function (remainder)
IEEE round‑to‑integer operation (rint)
Signalling NaNs (_WANT_SNAN)
Complex math functions (cacos, casin,
catan, ccos, csin, ctan, cacosh, casinh, catanh, ccosh, csinh, ctanh,
cexp, clog, cabs, cpow, csqrt, carg, cproj).
Mathlib also provides the following nonstandard functions: