Namespaces
Variants
Views
Actions

Common mathematical functions

From cppreference.com
< cpp | numeric
Revision as of 06:40, 28 November 2012 by Cubbi (Talk | contribs)
 
 
 
Common mathematical functions
Functions
Basic operations
remainder(C++11)
remquo(C++11)
fma(C++11)
fmax(C++11)
fmin(C++11)
fdim(C++11)
nan
nanf
nanl
(C++11)
(C++11)
(C++11)
Exponential functions
exp
exp2(C++11)
expm1(C++11)
log
log10
log1p(C++11)
log2(C++11)
Power functions
sqrt
cbrt(C++11)
hypot(C++11)
pow
Trigonometric and hyperbolic functions
sinh
cosh
tanh
asinh(C++11)
acosh(C++11)
atanh(C++11)
Error and gamma functions
erf(C++11)
erfc(C++11)
lgamma(C++11)
tgamma(C++11)
Nearest integer floating point operations
ceil
floor
round
lround
llround
(C++11)
(C++11)
(C++11)
trunc(C++11)
nearbyint(C++11)
rint
lrint
llrint
(C++11)
(C++11)
(C++11)
Floating point manipulation functions
ldexp
scalbn
scalbln
(C++11)
(C++11)
ilogb(C++11)
logb(C++11)
frexp
modf
nextafter
nexttoward
(C++11)
(C++11)
copysign(C++11)
Classification/Comparison
fpclassify(C++11)
isfinite(C++11)
isinf(C++11)
isnan(C++11)
isnormal(C++11)
signbit(C++11)
isgreater(C++11)
isgreaterequal(C++11)
isless(C++11)
islessequal(C++11)
islessgreater(C++11)
isunordered(C++11)
Macro constants
FP_NORMAL
FP_SUBNORMAL
FP_ZERO
FP_INFINITE
FP_NAN
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
 

Contents

Functions

Template:cpp/numeric/math/dcl list absTemplate:cpp/numeric/math/dcl list fabsTemplate:cpp/numeric/math/dcl list divTemplate:cpp/numeric/math/dcl list fmodTemplate:cpp/numeric/math/dcl list remainderTemplate:cpp/numeric/math/dcl list remquoTemplate:cpp/numeric/math/dcl list fmaTemplate:cpp/numeric/math/dcl list fmaxTemplate:cpp/numeric/math/dcl list fminTemplate:cpp/numeric/math/dcl list fdimTemplate:cpp/numeric/math/dcl list fnanTemplate:cpp/numeric/math/dcl list expTemplate:cpp/numeric/math/dcl list exp2Template:cpp/numeric/math/dcl list expm1Template:cpp/numeric/math/dcl list logTemplate:cpp/numeric/math/dcl list log10Template:cpp/numeric/math/dcl list log1pTemplate:cpp/numeric/math/dcl list log2Template:cpp/numeric/math/dcl list sqrtTemplate:cpp/numeric/math/dcl list cbrtTemplate:cpp/numeric/math/dcl list hypotTemplate:cpp/numeric/math/dcl list powTemplate:cpp/numeric/math/dcl list sinTemplate:cpp/numeric/math/dcl list cosTemplate:cpp/numeric/math/dcl list tanTemplate:cpp/numeric/math/dcl list asinTemplate:cpp/numeric/math/dcl list acosTemplate:cpp/numeric/math/dcl list atanTemplate:cpp/numeric/math/dcl list atan2Template:cpp/numeric/math/dcl list sinhTemplate:cpp/numeric/math/dcl list coshTemplate:cpp/numeric/math/dcl list tanhTemplate:cpp/numeric/math/dcl list asinhTemplate:cpp/numeric/math/dcl list acoshTemplate:cpp/numeric/math/dcl list atanhTemplate:cpp/numeric/math/dcl list erfTemplate:cpp/numeric/math/dcl list erfcTemplate:cpp/numeric/math/dcl list lgammaTemplate:cpp/numeric/math/dcl list tgammaTemplate:cpp/numeric/math/dcl list ceilTemplate:cpp/numeric/math/dcl list floorTemplate:cpp/numeric/math/dcl list truncTemplate:cpp/numeric/math/dcl list roundTemplate:cpp/numeric/math/dcl list nearbyintTemplate:cpp/numeric/math/dcl list rintTemplate:cpp/numeric/math/dcl list frexpTemplate:cpp/numeric/math/dcl list ldexpTemplate:cpp/numeric/math/dcl list modfTemplate:cpp/numeric/math/dcl list scalbnTemplate:cpp/numeric/math/dcl list ilogbTemplate:cpp/numeric/math/dcl list logbTemplate:cpp/numeric/math/dcl list nextafterTemplate:cpp/numeric/math/dcl list copysignTemplate:cpp/numeric/math/dcl list fpclassifyTemplate:cpp/numeric/math/dcl list isfiniteTemplate:cpp/numeric/math/dcl list isinfTemplate:cpp/numeric/math/dcl list isnanTemplate:cpp/numeric/math/dcl list isnormalTemplate:cpp/numeric/math/dcl list signbitTemplate:cpp/numeric/math/dcl list isgreaterTemplate:cpp/numeric/math/dcl list isgreaterequalTemplate:cpp/numeric/math/dcl list islessTemplate:cpp/numeric/math/dcl list islessequalTemplate:cpp/numeric/math/dcl list islessgreaterTemplate:cpp/numeric/math/dcl list isunordered
Defined in header <cmath>
Basic operations
Exponential functions
Power functions
Trigonometric functions
Hyperbolic functions
Error and gamma functions
Nearest integer floating point operations
Floating point manipulation functions
Classification and comparison

Types

Defined in header <cmath>
float_t most efficient floating-point type at least as wide as float
double_t most efficient floating-point type at least as wide as double
Defined in header <cstdlib>
div_t structure type, return of the std::div function
ldiv_t structure type, return of the std::ldiv function
lldiv_t structure type, return of the std::lldiv function
Defined in header <cinttypes>
imaxdiv_t structure type, return of the std::imaxdiv function

Macro constants

Template:cpp/numeric/math/dcl list HUGE VAL} Template:cpp/numeric/math/dcl list math errhandlingTemplate:cpp/numeric/math/dcl list FP categories
Defined in header <cmath>
(C++11)
evaluates to positive infinity or the value guaranteed to overflow a float
(macro constant)
(C++11)
evaluates to a quiet NaN of type float
(macro constant)
Classification
Defined in header <cfloat>