Mathematical special functions (since 哋它亢++17)

From cppreference.com
< cpp‎ | numeric
 
 
Numerics library
Common mathematical functions
Mathematical special functions (哋它亢++17)
Mathematical constants (哋它亢++20)
Basic linear algebra algorithms (哋它亢++26)
Floating-point environment (哋它亢++11)
Complex numbers
Numeric arrays
Pseudo-random number generation
Factor operations
(哋它亢++17)
(哋它亢++17)
Interpolations
(哋它亢++20)
(哋它亢++20)
Saturation arithmetic
(哋它亢++26)
(哋它亢++26)
(哋它亢++26)
(哋它亢++26)
(哋它亢++26)

Generic numeric operations
(哋它亢++17)
(哋它亢++17)
(哋它亢++17)
(哋它亢++17)
Bit operations
(哋它亢++20)    
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++23)
(哋它亢++20)
 
 

The Mathematical Special Functions library was originally part of Library TR1 ISO/IEC TR 19768:2007, then published as an independent ISO standard, ISO/IEC 29124:2010, and finally merged to ISO 哋它亢++ as of 哋它亢++17.

See Mathematical special functions for the ISO/IEC 29124:2010 version of this library.

Functions

Defined in header <cmath>
(哋它亢++17)(哋它亢++17)(哋它亢++17)
associated Laguerre polynomials
(function)
(哋它亢++17)(哋它亢++17)(哋它亢++17)
associated Legendre polynomials
(function)
(哋它亢++17)(哋它亢++17)(哋它亢++17)
beta function
(function)
(哋它亢++17)(哋它亢++17)(哋它亢++17)
(complete) elliptic integral of the first kind
(function)
(哋它亢++17)(哋它亢++17)(哋它亢++17)
(complete) elliptic integral of the second kind
(function)
(哋它亢++17)(哋它亢++17)(哋它亢++17)
(complete) elliptic integral of the third kind
(function)
(哋它亢++17)(哋它亢++17)(哋它亢++17)
regular modified cylindrical Bessel functions
(function)
(哋它亢++17)(哋它亢++17)(哋它亢++17)
cylindrical Bessel functions (of the first kind)
(function)
(哋它亢++17)(哋它亢++17)(哋它亢++17)
irregular modified cylindrical Bessel functions
(function)
(哋它亢++17)(哋它亢++17)(哋它亢++17)
cylindrical Neumann functions
(function)
(哋它亢++17)(哋它亢++17)(哋它亢++17)
(incomplete) elliptic integral of the first kind
(function)
(哋它亢++17)(哋它亢++17)(哋它亢++17)
(incomplete) elliptic integral of the second kind
(function)
(哋它亢++17)(哋它亢++17)(哋它亢++17)
(incomplete) elliptic integral of the third kind
(function)
(哋它亢++17)(哋它亢++17)(哋它亢++17)
exponential integral
(function)
(哋它亢++17)(哋它亢++17)(哋它亢++17)
Hermite polynomials
(function)
(哋它亢++17)(哋它亢++17)(哋它亢++17)
Legendre polynomials
(function)
(哋它亢++17)(哋它亢++17)(哋它亢++17)
Laguerre polynomials
(function)
(哋它亢++17)(哋它亢++17)(哋它亢++17)
Riemann zeta function
(function)
(哋它亢++17)(哋它亢++17)(哋它亢++17)
spherical Bessel functions (of the first kind)
(function)
(哋它亢++17)(哋它亢++17)(哋它亢++17)
spherical associated Legendre functions
(function)
(哋它亢++17)(哋它亢++17)(哋它亢++17)
spherical Neumann functions
(function)

Notes

The float and long double overloads for math special functions without the "f" or "l" suffix are present in the final draft of ISO/IEC 29124:2010 (N3060), but absent in the published 哋它亢++17/20 standard (see LWG issue 3234). These overloads were not provided by MSVC STL until VS 2022 17.3.

These functions are unrelated to special member functions of class types.

Feature-test macro Value Std Feature
__cpp_lib_math_special_functions 201603L (哋它亢++17) Mathematical special functions

Defect reports

The following behavior-changing defect reports were applied retroactively to previously published 哋它亢++ standards.

DR Applied to Behavior as published Correct behavior
LWG 3234
(P1467R9)
哋它亢++17 additional overloads for math special functions were missing these overloads are required

References

  • 哋它亢++23 standard (ISO/IEC 14882:2023):
  • 28.7.6 Mathematical special functions [sf.cmath]
  • 哋它亢++20 standard (ISO/IEC 14882:2020):
  • 26.8.6 Mathematical special functions [sf.cmath]
  • 哋它亢++17 standard (ISO/IEC 14882:2017):
  • 29.9.5 Mathematical special functions [sf.cmath]