pw-eyes pw-eyes
PrivateView

New! PrivateView

Beta
Preview websites directly from our search results page while keeping your visit completely anonymous.
<cmath> (math.h) - C++ Users
<cstdbool> (stdbool.h) <cstddef> (stddef.h) C++11. <cstdint> (stdint.h) <cstdio> (stdio.h) <cstdlib> (stdlib.h)
<cmath> (math.h) - C++ Users

<cstdbool> (stdbool.h) <cstddef> (stddef.h) C++11. <cstdint> (stdint.h) <cstdio> (stdio.h) <cstdlib> (stdlib.h)

Visit visit

Your search and this result

  • The search term appears in the result: cplusplus reference cmath
  • The website matches one or more of your search terms
  • Other websites that include your search terms link to this result
  • The result is in English (Canada)
Standard library header <cmath> - Reference

Synopsis. For each function with at least one parameter of type /* floating-point-type */, an overload for each cv-unqualified floating-point type is provided where all uses of /* floating-point-type */ in the function signature are replaced with that floating-point type.. For each function with at least one parameter of type /* floating-point-type */ other than std::abs, additional overloads ...

Visit visit

Your search and this result

  • The search term appears in the result: cplusplus reference cmath
  • The website matches one or more of your search terms
  • Other websites that include your search terms link to this result
  • The result is in English (Canada)
pw-eyes pw-eyes
PrivateView

New! PrivateView

Beta
Preview websites directly from our search results page while keeping your visit completely anonymous.
floor - C++ Users
double floor (double x); float floor (float x);long double floor (long double x);
floor - C++ Users

double floor (double x); float floor (float x);long double floor (long double x);

Visit visit

Your search and this result

  • The search term appears in the result: cplusplus reference cmath
  • The website matches one or more of your search terms
  • Other websites that include your search terms link to this result
  • The result is in English (Canada)
pw-eyes pw-eyes
PrivateView

New! PrivateView

Beta
Preview websites directly from our search results page while keeping your visit completely anonymous.
log - C++ Reference - cplusplus.com
double log ( double x); float log ( float x); long double log (long double x);
log - C++ Reference - cplusplus.com

double log ( double x); float log ( float x); long double log (long double x);

Visit visit

Your search and this result

  • The search term appears in the result: cplusplus reference cmath
  • The website matches one or more of your search terms
  • Other websites that include your search terms link to this result
  • The result is in English (Canada)
Common mathematical functions - cppreference.com

Constexpr for FP environment agnostic mathematical functions in <cmath> and <cstdlib> 202306L (C++26) Constexpr for most mathematical functions in <cmath> See also. Mathematical special functions: C documentation for Common mathematical functions.

Visit visit

Your search and this result

  • The search term appears in the result: cplusplus reference cmath
  • The website matches one or more of your search terms
  • Other websites that include your search terms link to this result
  • The result is in English (Canada)
fma - C++ Users

Returns x*y+z. The function computes the result without losing precision in any intermediate result. The following macro constants may be defined in an implementation to signal that this function generally provides an efficiency improvement over performing the arithmetic operations in x*y+z (such as when a hardware multiply-add instruction is used):

Visit visit

Your search and this result

  • The search term appears in the result: cplusplus reference cmath
  • The website matches one or more of your search terms
  • Other websites that include your search terms link to this result
  • The result is in English (Canada)
tan - C++ Reference - cplusplus.com

double tan (double x); float tan (float x); long double tan (long double x); double tan (T x); // additional overloads for integral types

Visit visit

Your search and this result

  • The search term appears in the result: cplusplus reference cmath
  • The website matches one or more of your search terms
  • Other websites that include your search terms link to this result
  • The result is in English (Canada)
pw-eyes pw-eyes
PrivateView

New! PrivateView

Beta
Preview websites directly from our search results page while keeping your visit completely anonymous.
pow - C++ Users
double pow (double base , double exponent); float powf (float base , float exponent);long double powl (long double base, long double exponent);
pow - C++ Users

double pow (double base , double exponent); float powf (float base , float exponent);long double powl (long double base, long double exponent);

Visit visit

Your search and this result

  • The search term appears in the result: cplusplus reference cmath
  • The website matches one or more of your search terms
  • Other websites that include your search terms link to this result
  • The result is in English (Canada)
pw-eyes pw-eyes
PrivateView

New! PrivateView

Beta
Preview websites directly from our search results page while keeping your visit completely anonymous.
sin - C++ Users
double sin (double x); float sinf (float x);long double sinl (long double x);
sin - C++ Users

double sin (double x); float sinf (float x);long double sinl (long double x);

Visit visit

Your search and this result

  • The search term appears in the result: cplusplus reference cmath
  • The website matches one or more of your search terms
  • Other websites that include your search terms link to this result
  • The result is in English (Canada)
atan2 - C++ Users

Additional overloads are provided in this header for other combinations of arithmetic types (Type1 and Type2): These overloads effectively cast its arguments to double before calculations, except if at least one of the arguments is of type long double (in which case both are casted to long double instead). This function is also overloaded in <valarray> (see valarray atan2).

Visit visit

Your search and this result

  • The search term appears in the result: cplusplus reference cmath
  • The website matches one or more of your search terms
  • Other websites that include your search terms link to this result
  • The result is in English (Canada)