libstdc++
math.h File Reference

Go to the source code of this file.

Functions

template<typename _Tp>
_Tp abs (const complex< _Tp > &)
 
template<typename _Tp>
std::complex< _Tp > acos (const std::complex< _Tp > &)
 
template<typename _Tp>
std::complex< _Tp > acosh (const std::complex< _Tp > &)
 
template<typename _Tp>
std::complex< _Tp > asin (const std::complex< _Tp > &)
 
template<typename _Tp>
std::complex< _Tp > asinh (const std::complex< _Tp > &)
 
template<typename _Tp>
std::complex< _Tp > atan (const std::complex< _Tp > &)
 
constexpr float atan2 (float __y, float __x)
 
template<typename _Tp>
std::complex< _Tp > atanh (const std::complex< _Tp > &)
 
constexpr float cbrt (float __x)
 
constexpr float ceil (float __x)
 
constexpr float copysign (float __x, float __y)
 
template<typename _Tp>
complex< _Tp > cos (const complex< _Tp > &)
 
template<typename _Tp>
complex< _Tp > cosh (const complex< _Tp > &)
 
constexpr float erf (float __x)
 
constexpr float erfc (float __x)
 
template<typename _Tp>
complex< _Tp > exp (const complex< _Tp > &)
 
constexpr float exp2 (float __x)
 
constexpr float expm1 (float __x)
 
template<typename _Tp>
_Tp fabs (const std::complex< _Tp > &__z)
 
constexpr float fdim (float __x, float __y)
 
constexpr float floor (float __x)
 
constexpr float fma (float __x, float __y, float __z)
 
constexpr float fmax (float __x, float __y)
 
constexpr float fmin (float __x, float __y)
 
constexpr float fmod (float __x, float __y)
 
constexpr int fpclassify (float __x)
 
float frexp (float __x, int *__exp)
 
constexpr float hypot (float __x, float __y)
 
constexpr int ilogb (float __x)
 
constexpr bool isfinite (float __x)
 
constexpr bool isgreater (float __x, float __y)
 
constexpr bool isgreaterequal (float __x, float __y)
 
constexpr bool isinf (float __x)
 
constexpr bool isless (float __x, float __y)
 
constexpr bool islessequal (float __x, float __y)
 
constexpr bool islessgreater (float __x, float __y)
 
constexpr bool isnan (float __x)
 
constexpr bool isnormal (float __x)
 
constexpr bool isunordered (float __x, float __y)
 
constexpr float ldexp (float __x, int __exp)
 
constexpr float lgamma (float __x)
 
constexpr long long llrint (float __x)
 
constexpr long long llround (float __x)
 
template<typename _Tp>
complex< _Tp > log (const complex< _Tp > &)
 
template<typename _Tp>
complex< _Tp > log10 (const complex< _Tp > &)
 
constexpr float log1p (float __x)
 
constexpr float log2 (float __x)
 
constexpr float logb (float __x)
 
constexpr long lrint (float __x)
 
constexpr long lround (float __x)
 
float modf (float __x, float *__iptr)
 
constexpr float nearbyint (float __x)
 
constexpr float nextafter (float __x, float __y)
 
constexpr float nexttoward (float __x, long double __y)
 
template<typename _Tp>
complex< _Tp > pow (const complex< _Tp > &, int)
 
constexpr float remainder (float __x, float __y)
 
float remquo (float __x, float __y, int *__pquo)
 
constexpr float rint (float __x)
 
constexpr float round (float __x)
 
constexpr float scalbln (float __x, long __ex)
 
constexpr float scalbn (float __x, int __ex)
 
constexpr bool signbit (float __x)
 
template<typename _Tp>
complex< _Tp > sin (const complex< _Tp > &)
 
template<typename _Tp>
complex< _Tp > sinh (const complex< _Tp > &)
 
template<typename _Tp>
complex< _Tp > sqrt (const complex< _Tp > &)
 
template<typename _Tp>
complex< _Tp > tan (const complex< _Tp > &)
 
template<typename _Tp>
complex< _Tp > tanh (const complex< _Tp > &)
 
constexpr float tgamma (float __x)
 
constexpr float trunc (float __x)
 

Detailed Description

This is a Standard C++ Library header.

Definition in file math.h.

Function Documentation

◆ abs()

template<typename _Tp>
_Tp std::abs ( const complex< _Tp > & __z)
inline

Return magnitude of z.

Definition at line 892 of file complex.

◆ acos()

template<typename _Tp>
std::complex< _Tp > std::acos ( const std::complex< _Tp > & __z)
inline

Definition at line 2213 of file complex.

◆ acosh()

template<typename _Tp>
std::complex< _Tp > std::acosh ( const std::complex< _Tp > & __z)
inline

Definition at line 2329 of file complex.

◆ asin()

template<typename _Tp>
std::complex< _Tp > std::asin ( const std::complex< _Tp > & __z)
inline

Definition at line 2249 of file complex.

◆ asinh()

template<typename _Tp>
std::complex< _Tp > std::asinh ( const std::complex< _Tp > & __z)
inline

Definition at line 2368 of file complex.

◆ atan()

template<typename _Tp>
std::complex< _Tp > std::atan ( const std::complex< _Tp > & __z)
inline

Definition at line 2293 of file complex.

◆ atan2()

float std::atan2 ( float __y,
float __x )
inlineconstexpr

Definition at line 150 of file cmath.

◆ atanh()

template<typename _Tp>
std::complex< _Tp > std::atanh ( const std::complex< _Tp > & __z)
inline

Definition at line 2412 of file complex.

◆ cbrt()

float std::cbrt ( float __x)
constexpr

Definition at line 2289 of file cmath.

◆ ceil()

float std::ceil ( float __x)
inlineconstexpr

Definition at line 162 of file cmath.

◆ copysign()

float std::copysign ( float __x,
float __y )
constexpr

Definition at line 2307 of file cmath.

◆ cos()

template<typename _Tp>
complex< _Tp > std::cos ( const complex< _Tp > & __z)
inline

Return complex cosine of z.

Definition at line 1003 of file complex.

◆ cosh()

template<typename _Tp>
complex< _Tp > std::cosh ( const complex< _Tp > & __z)
inline

Return complex hyperbolic cosine of z.

Definition at line 1033 of file complex.

◆ erf()

float std::erf ( float __x)
constexpr

Definition at line 2317 of file cmath.

◆ erfc()

float std::erfc ( float __x)
constexpr

Definition at line 2335 of file cmath.

◆ exp()

template<typename _Tp>
complex< _Tp > std::exp ( const complex< _Tp > & __z)
inline

Return complex base e exponential of z.

Definition at line 1059 of file complex.

◆ exp2()

float std::exp2 ( float __x)
constexpr

Definition at line 2353 of file cmath.

◆ expm1()

float std::expm1 ( float __x)
constexpr

Definition at line 2371 of file cmath.

◆ fabs()

template<typename _Tp>
_Tp std::fabs ( const std::complex< _Tp > & __z)
inline

fabs(__z) [8.1.8].

Definition at line 2429 of file complex.

◆ fdim()

float std::fdim ( float __x,
float __y )
constexpr

Definition at line 2389 of file cmath.

◆ floor()

float std::floor ( float __x)
inlineconstexpr

Definition at line 257 of file cmath.

◆ fma()

float std::fma ( float __x,
float __y,
float __z )
constexpr

Definition at line 2399 of file cmath.

◆ fmax()

float std::fmax ( float __x,
float __y )
constexpr

Definition at line 2409 of file cmath.

◆ fmin()

float std::fmin ( float __x,
float __y )
constexpr

Definition at line 2419 of file cmath.

◆ fmod()

float std::fmod ( float __x,
float __y )
inlineconstexpr

Definition at line 276 of file cmath.

◆ fpclassify()

int std::fpclassify ( float __x)
constexpr

Definition at line 1101 of file cmath.

◆ frexp()

float std::frexp ( float __x,
int * __exp )
inline

Definition at line 288 of file cmath.

◆ hypot()

float std::hypot ( float __x,
float __y )
constexpr

Definition at line 2429 of file cmath.

◆ ilogb()

int std::ilogb ( float __x)
constexpr

Definition at line 2439 of file cmath.

◆ isfinite()

bool std::isfinite ( float __x)
constexpr

Definition at line 1126 of file cmath.

◆ isgreater()

bool std::isgreater ( float __x,
float __y )
constexpr

Definition at line 1247 of file cmath.

◆ isgreaterequal()

bool std::isgreaterequal ( float __x,
float __y )
constexpr

Definition at line 1273 of file cmath.

◆ isinf()

bool std::isinf ( float __x)
constexpr

Definition at line 1148 of file cmath.

◆ isless()

bool std::isless ( float __x,
float __y )
constexpr

Definition at line 1299 of file cmath.

◆ islessequal()

bool std::islessequal ( float __x,
float __y )
constexpr

Definition at line 1325 of file cmath.

◆ islessgreater()

bool std::islessgreater ( float __x,
float __y )
constexpr

Definition at line 1351 of file cmath.

◆ isnan()

bool std::isnan ( float __x)
constexpr

Definition at line 1175 of file cmath.

◆ isnormal()

bool std::isnormal ( float __x)
constexpr

Definition at line 1202 of file cmath.

◆ isunordered()

bool std::isunordered ( float __x,
float __y )
constexpr

Definition at line 1377 of file cmath.

◆ ldexp()

float std::ldexp ( float __x,
int __exp )
inlineconstexpr

Definition at line 307 of file cmath.

◆ lgamma()

float std::lgamma ( float __x)
constexpr

Definition at line 2458 of file cmath.

◆ llrint()

long long std::llrint ( float __x)
constexpr

Definition at line 2476 of file cmath.

◆ llround()

long long std::llround ( float __x)
constexpr

Definition at line 2494 of file cmath.

◆ log()

template<typename _Tp>
complex< _Tp > std::log ( const complex< _Tp > & __z)
inline

Return complex natural logarithm of z.

Definition at line 1086 of file complex.

◆ log10()

template<typename _Tp>
complex< _Tp > std::log10 ( const complex< _Tp > & __z)
inline

Return complex base 10 logarithm of z.

Definition at line 1095 of file complex.

◆ log1p()

float std::log1p ( float __x)
constexpr

Definition at line 2512 of file cmath.

◆ log2()

float std::log2 ( float __x)
constexpr

Definition at line 2531 of file cmath.

◆ logb()

float std::logb ( float __x)
constexpr

Definition at line 2549 of file cmath.

◆ lrint()

long std::lrint ( float __x)
constexpr

Definition at line 2567 of file cmath.

◆ lround()

long std::lround ( float __x)
constexpr

Definition at line 2585 of file cmath.

◆ modf()

float std::modf ( float __x,
float * __iptr )
inline

Definition at line 364 of file cmath.

◆ nearbyint()

float std::nearbyint ( float __x)
constexpr

Definition at line 2603 of file cmath.

◆ nextafter()

float std::nextafter ( float __x,
float __y )
constexpr

Definition at line 2621 of file cmath.

◆ nexttoward()

float std::nexttoward ( float __x,
long double __y )
constexpr

Definition at line 2631 of file cmath.

◆ pow()

template<typename _Tp>
complex< _Tp > std::pow ( const complex< _Tp > & __z,
int __n )
inline

Return x to the y'th power.

Definition at line 1285 of file complex.

◆ remainder()

float std::remainder ( float __x,
float __y )
constexpr

Definition at line 2649 of file cmath.

◆ remquo()

float std::remquo ( float __x,
float __y,
int * __pquo )
inline

Definition at line 2659 of file cmath.

◆ rint()

float std::rint ( float __x)
constexpr

Definition at line 2669 of file cmath.

◆ round()

float std::round ( float __x)
constexpr

Definition at line 2687 of file cmath.

◆ scalbln()

float std::scalbln ( float __x,
long __ex )
constexpr

Definition at line 2705 of file cmath.

◆ scalbn()

float std::scalbn ( float __x,
int __ex )
constexpr

Definition at line 2723 of file cmath.

◆ signbit()

bool std::signbit ( float __x)
constexpr

Definition at line 1225 of file cmath.

◆ sin()

template<typename _Tp>
complex< _Tp > std::sin ( const complex< _Tp > & __z)
inline

Return complex sine of z.

Definition at line 1121 of file complex.

◆ sinh()

template<typename _Tp>
complex< _Tp > std::sinh ( const complex< _Tp > & __z)
inline

Return complex hyperbolic sine of z.

Definition at line 1151 of file complex.

◆ sqrt()

template<typename _Tp>
complex< _Tp > std::sqrt ( const complex< _Tp > & __z)
inline

Return complex square root of z.

Definition at line 1195 of file complex.

◆ tan()

template<typename _Tp>
complex< _Tp > std::tan ( const complex< _Tp > & __z)
inline

Return complex tangent of z.

Definition at line 1222 of file complex.

◆ tanh()

template<typename _Tp>
complex< _Tp > std::tanh ( const complex< _Tp > & __z)
inline

Return complex hyperbolic tangent of z.

Definition at line 1250 of file complex.

◆ tgamma()

float std::tgamma ( float __x)
constexpr

Definition at line 2741 of file cmath.

◆ trunc()

float std::trunc ( float __x)
constexpr

Definition at line 2759 of file cmath.