mathlib double and single-precision floating-point functions
The math library, mathlib, provides double and single-precision functions for mathematical calculations.
example, to calculate a cube root, you can use
ISO/IEC 14882 specifies that in addition to the
double versions of the math functions in <cmath>, C++ adds
long double) overloaded versions of these functions. The ARM® implementation extends
this in scope to include the additional math functions that do not exist in C90, but that do
exist in C99.
std::cbrt() on a
float argument selects the
single-precision version of the function, and the same type of selection applies to other
floating-point functions in C++.