Common mathematical functions
From cppreference.com
 
 
 
 
 
  C 
 Concurrency support (C11)
 Numerics 
 Common mathematical functions
 
  
  
 
 
 
 
 
  
 
  
  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 Functions
 Basic operations
 Maximum/minimum operations
(C23)
(C23)
(C23)
(C23)
(C23)
   Exponential functions
 Power functions
 Trigonometric and hyperbolic functions
 Nearest integer floating-point
 Floating-point manipulation
 Narrowing operations
 Quantum and quantum exponent
(C23)
(C23)
(C23)
(C23)
 Decimal re-encoding functions
(C23)
(C23)
(C23)
(C23)
 Total order and payload functions
(C23)
(C23)
(C23)
(C23)
 Classification
(C99)
(C23)
 (C99)
(C99)
(C99)
(C99)
(C99)
(C23)
(C23)
(C99)
(C99)
  (C99)
(C99)
(C99)
(C99)
(C23)
(C23)
 Error and gamma functions
 Types
(C99)(C99)
(C99)(C99)
(C23)(C23)
 Macro constants
 Special floating-point values
(C99)(C99)(C23)
(C99)(C23)
(C99)(C23)
 Arguments and return values
(C99)(C99)
(C99)(C99)(C99)(C99)(C99)
(C23)(C23)
(C23)(C23)(C23)(C23)(C23)
 Error handling
(C99)(C99)
 (C99)
 Fast operation indicators
(C99)(C99)
(C23)(C23)(C23)(C23)
(C23)(C23)(C23)(C23)
(C23)(C23)(C23)(C23)
(C99)(C23)
(C23)(C23)(C23)(C23)
(C23)(C23)(C23)(C23)
(C23)(C23)(C23)(C23)
Contents
[edit] Types
Defined in header 
<stdlib.h>  Defined in header 
<inttypes.h>  Defined in header 
<math.h>  [edit] Constants
Defined in header 
<math.h>  (C99)(C99)
(macro constant) [edit]
(C99)
(macro constant) [edit]
(C99)(C99)(C99)
(macro constant) [edit]
(C99)(C99)(C99)
(macro constant) [edit]
Classification
[edit] Functions
Defined in header 
<stdlib.h>  Defined in header 
<inttypes.h>  Defined in header 
<math.h>  Basic operations
(C99)(C99)(C99)
(function) [edit]
(C99)(C99)(C99)
(function) [edit]
(C99)(C99)(C99)
(function) [edit]
Exponential functions
(C99)(C99)(C99)
(function) [edit]
(C99)(C99)
(function) [edit]
(C99)(C99)(C99)
(function) [edit]
Power functions
(C99)(C99)(C99)
+y2
)
(function) [edit]
Trigonometric functions
Hyperbolic functions
(C99)(C99)(C99)
(function) [edit]
(C99)(C99)(C99)
(function) [edit]
(C99)(C99)(C99)
(function) [edit]
Error and gamma functions
Nearest integer floating-point operations
(C99)(C99)(C99)
(function) [edit]
(C99)(C99)(C99)(C99)(C99)(C99)(C99)(C99)(C99)
(function) [edit]
(C99)(C99)(C99)(C99)(C99)(C99)(C99)(C99)(C99)
exception if the result differs
(function) [edit]
Floating-point manipulation functions
(C99)(C99)(C99)(C99)(C99)(C99)
(function) [edit]
(C99)(C99)(C99)(C99)(C99)(C99)
(function) [edit]
(C99)(C99)(C99)
(function) [edit]
Classification and comparison
(C99)
(function macro) [edit]
(C99)
(function macro) [edit]
(C99)
(function macro) [edit]
(C99)
(function macro) [edit]
[edit] References
- C23 standard (ISO/IEC 9899:2024):
- 7.8 Format conversion of integer types <inttypes.h> (p: TBD)
 
- 7.12 Mathematics <math.h> (p: TBD)
 
- 7.22 General utilities <stdlib.h> (p: TBD)
 
- 7.31.5 Format conversion of integer types <inttypes.h> (p: TBD)
 
- 7.31.12 General utilities <stdlib.h> (p: TBD)
 
- C17 standard (ISO/IEC 9899:2018):
- 7.8 Format conversion of integer types <inttypes.h> (p: 158-160)
 
- 7.12 Mathematics <math.h> (p: 169-190)
 
- 7.22 General utilities <stdlib.h> (p: 248-262)
 
- 7.31.5 Format conversion of integer types <inttypes.h> (p: 332)
 
- 7.31.12 General utilities <stdlib.h> (p: 333)
 
- C11 standard (ISO/IEC 9899:2011):
- 7.8 Format conversion of integer types <inttypes.h> (p: 217-220)
 
- 7.12 Mathematics <math.h> (p: 231-261)
 
- 7.22 General utilities <stdlib.h> (p: 340-360)
 
- 7.31.5 Format conversion of integer types <inttypes.h> (p: 455)
 
- 7.31.12 General utilities <stdlib.h> (p: 456)
 
- C99 standard (ISO/IEC 9899:1999):
- 7.8 Format conversion of integer types <inttypes.h> (p: 198-201)
 
- 7.12 Mathematics <math.h> (p: 212-242)
 
- 7.20 General utilities <stdlib.h> (p: 306-324)
 
- 7.26.4 Format conversion of integer types <inttypes.h> (p: 401)
 
- 7.26.10 General utilities <stdlib.h> (p: 402)
 
- C89/C90 standard (ISO/IEC 9899:1990):
- 4.5 MATHEMATICS <math.h>
 
- 4.10 GENERAL UTILITIES <stdlib.h>
 
- 4.13.4 Mathematics <math.h>
 
- 7.13.7 General utilities <stdlib.h>
 
[edit] See also
C++ documentation  for Common mathematical functions