CARVIEW |
Select Language
HTTP/1.1 200 OK
Server: nginx
Date: Mon, 21 Jul 2025 20:50:17 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
ETag: W/"cae0-A03gCz4iNnopKj247FTarMjmwBU"
Content-Encoding: gzip
Header
This header also defines the following macro constants (since C99/C++11):
Reference
C library:
- <cassert> (assert.h)
- <cctype> (ctype.h)
- <cerrno> (errno.h)
-
<cfenv> (fenv.h)C++11
- <cfloat> (float.h)
-
<cinttypes> (inttypes.h)C++11
- <ciso646> (iso646.h)
- <climits> (limits.h)
- <clocale> (locale.h)
- <cmath> (math.h)
- <csetjmp> (setjmp.h)
- <csignal> (signal.h)
- <cstdarg> (stdarg.h)
-
<cstdbool> (stdbool.h)C++11
- <cstddef> (stddef.h)
-
<cstdint> (stdint.h)C++11
- <cstdio> (stdio.h)
- <cstdlib> (stdlib.h)
- <cstring> (string.h)
-
<ctgmath> (tgmath.h)C++11
- <ctime> (time.h)
-
<cuchar> (uchar.h)C++11
- <cwchar> (wchar.h)
- <cwctype> (wctype.h)
Containers:
-
<array>C++11
- <deque>
-
<forward_list>C++11
- <list>
- <map>
- <queue>
- <set>
- <stack>
-
<unordered_map>C++11
-
<unordered_set>C++11
- <vector>
-
Input/Output:
Multi-threading:
-
<atomic>C++11
-
<condition_variable>C++11
-
<future>C++11
-
<mutex>C++11
-
<thread>C++11
-
Other:
- <algorithm>
- <bitset>
-
<chrono>C++11
-
<codecvt>C++11
- <complex>
- <exception>
- <functional>
-
<initializer_list>C++11
- <iterator>
- <limits>
- <locale>
- <memory>
- <new>
- <numeric>
-
<random>C++11
-
<ratio>C++11
-
<regex>C++11
- <stdexcept>
- <string>
-
<system_error>C++11
-
<tuple>C++11
-
<type_traits>C++11
-
<typeindex>C++11
- <typeinfo>
- <utility>
- <valarray>
<cmath> (math.h)
functions
- abs
- acos
-
acoshC++11
- asin
-
asinhC++11
- atan
- atan2
-
atanhC++11
-
cbrtC++11
- ceil
-
copysignC++11
- cos
- cosh
-
erfC++11
-
erfcC++11
- exp
-
exp2C++11
-
expm1C++11
- fabs
-
fdimC++11
- floor
-
fmaC++11
-
fmaxC++11
-
fminC++11
- fmod
-
fpclassifyC++11
- frexp
-
hypotC++11
-
ilogbC++11
-
isfiniteC++11
-
isgreaterC++11
-
isgreaterequalC++11
-
isinfC++11
-
islessC++11
-
islessequalC++11
-
islessgreaterC++11
-
isnanC++11
-
isnormalC++11
-
isunorderedC++11
- ldexp
-
lgammaC++11
-
llrintC++11
-
llroundC++11
- log
- log10
-
log1pC++11
-
log2C++11
-
logbC++11
-
lrintC++11
-
lroundC++11
- modf
-
nanC++11
-
nanfC++11
-
nanlC++11
-
nearbyintC++11
-
nextafterC++11
-
nexttowardC++11
- pow
-
remainderC++11
-
remquoC++11
-
rintC++11
-
roundC++11
-
scalblnC++11
-
scalbnC++11
-
signbitC++11
- sin
- sinh
- sqrt
- tan
- tanh
-
tgammaC++11
-
truncC++11
macro constants
types
- Reference
- <cmath>
header
<cmath> (math.h)
C numerics library
<cmath>
declares a set of functions to compute common mathematical operations and transformations:Functions
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)
- acosh
- Compute area hyperbolic cosine (function)
- asinh
- Compute area hyperbolic sine (function)
- atanh
- Compute area hyperbolic tangent (function)
Exponential and logarithmic functions
- exp
- Compute exponential function (function)
- frexp
- Get significand and exponent (function)
- ldexp
- Generate value from significand and exponent (function)
- log
- Compute natural logarithm (function)
- log10
- Compute common logarithm (function)
- modf
- Break into fractional and integral parts (function)
- exp2
- Compute binary exponential function (function)
- expm1
- Compute exponential minus one (function)
- ilogb
- Integer binary logarithm (function)
- log1p
- Compute logarithm plus one (function)
- log2
- Compute binary logarithm (function)
- logb
- Compute floating-point base logarithm (function)
- scalbn
- Scale significand using floating-point base exponent (function)
- scalbln
- Scale significand using floating-point base exponent (long) (function)
Power functions
- pow
- Raise to power (function)
- sqrt
- Compute square root (function)
- cbrt
- Compute cubic root (function)
- hypot
- Compute hypotenuse (function)
Error and gamma functions
- erf
- Compute error function (function)
- erfc
- Compute complementary error function (function)
- tgamma
- Compute gamma function (function)
- lgamma
- Compute log-gamma function (function)
Rounding and remainder functions
- ceil
- Round up value (function)
- floor
- Round down value (function)
- fmod
- Compute remainder of division (function)
- trunc
- Truncate value (function)
- round
- Round to nearest (function)
- lround
- Round to nearest and cast to long integer (function)
- llround
- Round to nearest and cast to long long integer (function)
- rint
- Round to integral value (function)
- lrint
- Round and cast to long integer (function)
- llrint
- Round and cast to long long integer (function)
- nearbyint
- Round to nearby integral value (function)
- remainder
- Compute remainder (IEC 60559) (function)
- remquo
- Compute remainder and quotient (function)
Floating-point manipulation functions
- copysign
- Copy sign (function)
- nan
- Generate quiet NaN (function)
- nextafter
- Next representable value (function)
- nexttoward
- Next representable value toward precise value (function)
Minimum, maximum, difference functions
- fdim
- Positive difference (function)
- fmax
- Maximum value (function)
- fmin
- Minimum value (function)
Other functions
- fabs
- Compute absolute value (function)
- abs
- Compute absolute value (function)
- fma
- Multiply-add (function)
Macros / Functions
These are implemented as macros in C and as functions in C++:Classification macro / functions
- fpclassify
- Classify floating-point value (macro/function)
- isfinite
- Is finite value (macro)
- isinf
- Is infinity (macro/function)
- isnan
- Is Not-A-Number (macro/function)
- isnormal
- Is normal (macro/function)
- signbit
- Sign bit (macro/function)
Comparison macro / functions
- isgreater
- Is greater (macro)
- isgreaterequal
- Is greater or equal (macro)
- isless
- Is less (macro)
- islessequal
- Is less or equal (macro)
- islessgreater
- Is less or greater (macro)
- isunordered
- Is unordered (macro)
Macro constants
- math_errhandling
- Error handling (macro)
- INFINITY
- Infinity (constant)
- NAN
- Not-A-Number (constant)
- HUGE_VAL
- Huge value (constant)
- HUGE_VALF
- Huge float value
- HUGE_VALL
- Huge long double value (constant)
This header also defines the following macro constants (since C99/C++11):
macro | type | description |
---|---|---|
MATH_ERRNO MATH_ERREXCEPT | int | Bitmask value with the possible values math_errhandling can take. |
FP_FAST_FMA FP_FAST_FMAF FP_FAST_FMAL | int | Each, if defined, identifies for which type fma is at least as efficient as x*y+z . |
FP_INFINITE FP_NAN FP_NORMAL FP_SUBNORMAL FP_ZERO | int | The possible values returned by fpclassify. |
FP_ILOGB0 FP_ILOGBNAN | int | Special values the ilogb function may return. |
Types
- double_t
- Floating-point type (type)
- float_t
- Floating-point type (type)
Home page | Privacy policy
© cplusplus.com, 2000-2025 - All rights reserved - v3.3.4s
Spotted an error? contact us
© cplusplus.com, 2000-2025 - All rights reserved - v3.3.4s
Spotted an error? contact us