The C numerics library includes common mathematical functions and types, as well as support for random number generation.
Contents |
The header<math.h> providesstandard C library mathematical functions such asfabs,sqrt, andsin.
The header<fenv.h> definesflags 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 viasrand andrand.
The header<complex.h> provides types and functions to work withcomplex numbers.
The header<tgmath.h> provides some macros for a function which names XXX:
XXXf
XXX
XXXl
cXXXf
cXXX
cXXXl
The header<stdbit.h> provides macros and functions to work with thebyte ordering andbyte and bit representation of C objects.
Provides sometype-generic macros for checked integer arithmetic:
Defined in header <stdckdint.h> | |
(C23) | checked addition operation on two integers (type-generic function macro)[edit] |
(C23) | checked subtraction operation on two integers (type-generic function macro)[edit] |
(C23) | checked multiplication operation on two integers (type-generic function macro)[edit] |
C++ documentation forNumerics library |