libstdc++
cmath File Reference

Go to the source code of this file.

Namespaces

 std
 

Macros

#define _GLIBCXX_CMATH
 

Functions

constexpr double std::abs (double __x)
 
constexpr float std::abs (float __x)
 
constexpr long double std::abs (long double __x)
 
template<typename _Tp >
constexpr
__gnu_cxx::__enable_if
< __is_integer< _Tp >::__value,
double >::__type 
std::abs (_Tp __x)
 
constexpr float std::acos (float __x)
 
constexpr long double std::acos (long double __x)
 
template<typename _Tp >
constexpr
__gnu_cxx::__enable_if
< __is_integer< _Tp >::__value,
double >::__type 
std::acos (_Tp __x)
 
constexpr float std::asin (float __x)
 
constexpr long double std::asin (long double __x)
 
template<typename _Tp >
constexpr
__gnu_cxx::__enable_if
< __is_integer< _Tp >::__value,
double >::__type 
std::asin (_Tp __x)
 
constexpr float std::atan (float __x)
 
constexpr long double std::atan (long double __x)
 
template<typename _Tp >
constexpr
__gnu_cxx::__enable_if
< __is_integer< _Tp >::__value,
double >::__type 
std::atan (_Tp __x)
 
constexpr float std::atan2 (float __y, float __x)
 
constexpr long double std::atan2 (long double __y, long double __x)
 
template<typename _Tp , typename _Up >
constexpr
__gnu_cxx::__promote_2< _Tp,
_Up >::__type 
std::atan2 (_Tp __y, _Up __x)
 
constexpr float std::ceil (float __x)
 
constexpr long double std::ceil (long double __x)
 
template<typename _Tp >
constexpr
__gnu_cxx::__enable_if
< __is_integer< _Tp >::__value,
double >::__type 
std::ceil (_Tp __x)
 
constexpr float std::cos (float __x)
 
constexpr long double std::cos (long double __x)
 
template<typename _Tp >
constexpr
__gnu_cxx::__enable_if
< __is_integer< _Tp >::__value,
double >::__type 
std::cos (_Tp __x)
 
constexpr float std::cosh (float __x)
 
constexpr long double std::cosh (long double __x)
 
template<typename _Tp >
constexpr
__gnu_cxx::__enable_if
< __is_integer< _Tp >::__value,
double >::__type 
std::cosh (_Tp __x)
 
constexpr float std::exp (float __x)
 
constexpr long double std::exp (long double __x)
 
template<typename _Tp >
constexpr
__gnu_cxx::__enable_if
< __is_integer< _Tp >::__value,
double >::__type 
std::exp (_Tp __x)
 
constexpr float std::fabs (float __x)
 
constexpr long double std::fabs (long double __x)
 
template<typename _Tp >
constexpr
__gnu_cxx::__enable_if
< __is_integer< _Tp >::__value,
double >::__type 
std::fabs (_Tp __x)
 
constexpr float std::floor (float __x)
 
constexpr long double std::floor (long double __x)
 
template<typename _Tp >
constexpr
__gnu_cxx::__enable_if
< __is_integer< _Tp >::__value,
double >::__type 
std::floor (_Tp __x)
 
constexpr float std::fmod (float __x, float __y)
 
constexpr long double std::fmod (long double __x, long double __y)
 
template<typename _Tp , typename _Up >
constexpr
__gnu_cxx::__promote_2< _Tp,
_Up >::__type 
std::fmod (_Tp __x, _Up __y)
 
float std::frexp (float __x, int *__exp)
 
long double std::frexp (long double __x, int *__exp)
 
template<typename _Tp >
constexpr
__gnu_cxx::__enable_if
< __is_integer< _Tp >::__value,
double >::__type 
std::frexp (_Tp __x, int *__exp)
 
constexpr float std::ldexp (float __x, int __exp)
 
constexpr long double std::ldexp (long double __x, int __exp)
 
template<typename _Tp >
constexpr
__gnu_cxx::__enable_if
< __is_integer< _Tp >::__value,
double >::__type 
std::ldexp (_Tp __x, int __exp)
 
constexpr float std::log (float __x)
 
constexpr long double std::log (long double __x)
 
template<typename _Tp >
constexpr
__gnu_cxx::__enable_if
< __is_integer< _Tp >::__value,
double >::__type 
std::log (_Tp __x)
 
constexpr float std::log10 (float __x)
 
constexpr long double std::log10 (long double __x)
 
template<typename _Tp >
constexpr
__gnu_cxx::__enable_if
< __is_integer< _Tp >::__value,
double >::__type 
std::log10 (_Tp __x)
 
float std::modf (float __x, float *__iptr)
 
long double std::modf (long double __x, long double *__iptr)
 
constexpr float std::pow (float __x, float __y)
 
constexpr long double std::pow (long double __x, long double __y)
 
template<typename _Tp , typename _Up >
constexpr
__gnu_cxx::__promote_2< _Tp,
_Up >::__type 
std::pow (_Tp __x, _Up __y)
 
constexpr float std::sin (float __x)
 
constexpr long double std::sin (long double __x)
 
template<typename _Tp >
constexpr
__gnu_cxx::__enable_if
< __is_integer< _Tp >::__value,
double >::__type 
std::sin (_Tp __x)
 
constexpr float std::sinh (float __x)
 
constexpr long double std::sinh (long double __x)
 
template<typename _Tp >
constexpr
__gnu_cxx::__enable_if
< __is_integer< _Tp >::__value,
double >::__type 
std::sinh (_Tp __x)
 
constexpr float std::sqrt (float __x)
 
constexpr long double std::sqrt (long double __x)
 
template<typename _Tp >
constexpr
__gnu_cxx::__enable_if
< __is_integer< _Tp >::__value,
double >::__type 
std::sqrt (_Tp __x)
 
constexpr float std::tan (float __x)
 
constexpr long double std::tan (long double __x)
 
template<typename _Tp >
constexpr
__gnu_cxx::__enable_if
< __is_integer< _Tp >::__value,
double >::__type 
std::tan (_Tp __x)
 
constexpr float std::tanh (float __x)
 
constexpr long double std::tanh (long double __x)
 
template<typename _Tp >
constexpr
__gnu_cxx::__enable_if
< __is_integer< _Tp >::__value,
double >::__type 
std::tanh (_Tp __x)
 

Detailed Description

This is a Standard C++ Library file. You should #include this file in your programs, rather than any of the *.h implementation files.

This is the C++ version of the Standard C Library header math.h, and its contents are (mostly) the same as that header, but are all contained in the namespace std (except for names which are defined as macros in C).

Definition in file cmath.