The C numerics library includes common mathematical functions and types, as well as support for random number generation.
The header math.h provides standard C library mathematical functions such as fabs, sqrt, and sin.
The header fenv.h defines flags and functions related to exceptional floating-point state, such as overflow and division by zero.
The header stdlib.h also includes C-style random number generation via srand and rand.
The header complex.h provides types and functions about complex numbers.
The header tgmath.h provides some macros for a function which names XXX:
float variant XXXf double variant XXX long double variant XXXl float variant cXXXf double variant cXXX long double variant cXXXl | C++ documentation for Numerics library |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/c/numeric