Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/numeric/math"

From cppreference.com
< cpp‎ | numeric
m (r2.7.3) (Robot: Adding cs, de, es, fr, it, ja, pl, pt, ru, tr, zh)
(Added M_PI)
Line 108: Line 108:
 
{{dcl list template | cpp/numeric/math/dcl list HUGE_VAL}}}
 
{{dcl list template | cpp/numeric/math/dcl list HUGE_VAL}}}
 
{{dcl list macro const | cpp/numeric/math/INFINITY | evaluates to positive infinity or the value guaranteed to overflow a {{c|float}}| notes={{mark c++11}}  }}
 
{{dcl list macro const | cpp/numeric/math/INFINITY | evaluates to positive infinity or the value guaranteed to overflow a {{c|float}}| notes={{mark c++11}}  }}
 +
{{dcl list macro const | cpp/numeric/math/M_PI | the irrational number &pi; of type {{c|double}} | notes=}}
 
{{dcl list macro const | cpp/numeric/math/NAN | evaluates to a quiet NaN of type {{c|float}} | notes={{mark c++11}}}}
 
{{dcl list macro const | cpp/numeric/math/NAN | evaluates to a quiet NaN of type {{c|float}} | notes={{mark c++11}}}}
 
{{dcl list template | cpp/numeric/math/dcl list math_errhandling}}
 
{{dcl list template | cpp/numeric/math/dcl list math_errhandling}}

Revision as of 02:42, 28 November 2012

 
 
 
Common mathematical functions
 

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)
the irrational number π of type double
(macro constant)
(C++11)
evaluates to a quiet NaN of type float
(macro constant)
Classification
Defined in header <cfloat>