Common mathematical functions
来自cppreference.com
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
[编辑] 功能
Defined in header
<cmath> | |
Original: Basic operations The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
(C++11) |
计算的积分值(|x|)的绝对值 Original: computes absolute value of an integral value (|x|) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
一个浮点值的绝对值(|x|) Original: absolute value of a floating point value (|x|) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
(C++11) |
商和余数的整数除法 Original: the quotient and remainder of integer division The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
浮点除法运算的剩余部分 Original: remainder of the floating point division operation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
(C++11) |
签署剩余的除法运算 Original: signed remainder of the division operation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
(C++11) |
签署其余部分以及最后三个位的除法运算 Original: signed remainder as well as the three last bits of the division operation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
(C++11) |
乘加操作 Original: fused multiply-add operation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
(C++11) |
较大的两个浮点值 Original: larger of two floating point values The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
(C++11) |
较小的两个浮点值 Original: smaller of two floating point values The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
(C++11) |
两个浮点值(max(0, x-y))的积极的影响 Original: positive difference of two floating point values (max(0, x-y)) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
(C++11) (C++11) (C++11) |
没有一个数字(NaN) Original: not-a-number (NaN) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
Original: Exponential functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
返回“E”提出的功率(ex) Original: returns e raised to the given power (ex) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
(C++11) |
返回“2”提出的功率(2x) Original: returns 2 raised to the given power (2x) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
(C++11) |
返回“E”提出的给定功率,减一(ex-1) Original: returns e raised to the given power, minus one (ex-1) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
计算自然(基地“E”)对数(基地“E”)(ln(x)) Original: computes natural (base e) logarithm (to base e) (ln(x)) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
常见的计算(基地“10”)对数(log10(x)) Original: computes common (base 10) logarithm (log10(x)) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
(C++11) |
自然对数(以基地“E”)1加给定数 Original: natural logarithm (to base e) of 1 plus the given number The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
(C++11) |
基体2的对数的给定数 Original: base 2 logarithm of the given number The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
Original: Power functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
计算平方根(√x) Original: computes square root (√x) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
(C++11) |
计算立方米的根(3√x) Original: computes cubic root (3√x) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
(C++11) |
计算两个给定的号码(√x2 +y2 )的平方之和的平方根 Original: computes square root of the sum of the squares of two given numbers (√x2 +y2 ) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
引起了一些给定的功率(xy) Original: raises a number to the given power (xy) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
Original: Trigonometric functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
计算的正弦(sin(x)) Original: computes sine (sin(x)) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
计算余弦(cos(x)) Original: computes cosine (cos(x)) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
计算角正切(tan(x)) Original: computes tangent (tan(x)) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
计算弧的正弦(arcsin(x)) Original: computes arc sine (arcsin(x)) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
计算反余弦(arccos(x)) Original: computes arc cosine (arccos(x)) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
计算反正切值(arctan(x)) Original: computes arc tangent (arctan(x)) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
圆弧相切,使用标志来确定象限 Original: arc tangent, using signs to determine quadrants The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
Original: Hyperbolic functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
计算双曲正弦(sh(x)) Original: computes hyperbolic sine (sh(x)) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
计算双曲余弦(ch(x)) Original: computes hyperbolic cosine (ch(x)) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
双曲正切 Original: hyperbolic tangent The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
(C++11) |
双曲反正弦 Original: hyperbolic arc sine The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
(C++11) |
双曲反余弦值 Original: hyperbolic arc cosine The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
(C++11) |
双曲反正切 Original: hyperbolic arc tangent The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
Original: Error and gamma functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
(C++11) |
误差函数 Original: error function The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
(C++11) |
互补误差函数 Original: complementary error function The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
(C++11) |
伽玛函数的自然对数 Original: natural logarithm of the gamma function The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
(C++11) |
伽玛函数 Original: gamma function The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
Original: Nearest integer floating point operations The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
最接近的整数不小于给定的值 Original: nearest integer not less than the given value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
最接近的整数不大于给定值 Original: nearest integer not greater than the given value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
(C++11) |
最接近的整数的幅值比不大于给定值 Original: nearest integer not greater in magnitude than the given value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
(C++11) (C++11) (C++11) |
最接近的整数,四舍五入的距离零中途情况下 Original: nearest integer, rounding away from zero in halfway cases The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
(C++11) |
最接近的整数,使用当前的舍入模式 Original: nearest integer using current rounding mode The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
(C++11) (C++11) (C++11) |
最接近的整数 的结果是不同的异常,如果使用当前的舍入模式 Original: nearest integer using current rounding mode with exception if the result differs The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
Original: Floating point manipulation functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
分解一个数字,位数和电源2 Original: decomposes a number into significand and a power of 2 The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
2次方乘以一个数 Original: multiplies a number by 2 raised to a power The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
分解一个数字的整数部分和小数部分 Original: decomposes a number into integer and fractional parts The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) | |
(C++11) (C++11) |
FLT_RADIX次方乘以一个数 Original: multiplies a number by FLT_RADIX raised to a power The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
(C++11) |
提取指数的数量 Original: extracts exponent of the number The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
(C++11) |
提取指数的数量 Original: extracts exponent of the number The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
(C++11) (C++11) |
对给定值的下一个可表示的浮点值 Original: next representable floating point value towards the given value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
(C++11) |
复制一个浮点值的符号 Original: copies the sign of a floating point value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
Original: Classification and comparison The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
(C++11) |
分类浮点值 Original: categorizes the given floating point value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
(C++11) |
如果给定数量的检查具有有限的价值 Original: checks if the given number has finite value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
(C++11) |
检查,如果给定的数目是无限的 Original: checks if the given number is infinite The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
(C++11) |
检查,如果给定的数字为NaN Original: checks if the given number is NaN The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
(C++11) |
检查如果给定的数字是正常的 Original: checks if the given number is normal The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
(C++11) |
给定数量的检查,如果是否定的 Original: checks if the given number is negative The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
(C++11) |
第一浮点参数的检查,如果是大于第二个 Original: checks if the first floating-point argument is greater than the second The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
(C++11) |
第一个浮点参数的检查,如果是大于或等于第二个 Original: checks if the first floating-point argument is greater or equal than the second The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
(C++11) |
第一浮点参数的检查,如果是小于第二个 Original: checks if the first floating-point argument is less than the second The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
(C++11) |
第一浮点参数的检查,如果小于或等于第二个 Original: checks if the first floating-point argument is less or equal than the second The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
(C++11) |
第一浮点参数的检查,如果是小于或大于第二个 Original: checks if the first floating-point argument is less or greater than the second The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
(C++11) |
检查是否两个浮点值是无序的 Original: checks if two floating-point values are unordered The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
[编辑] 类型
Defined in header
<cmath> | |
float_t
|
最有效的浮点类型至少宽float
Original: most efficient floating-point type at least as wide as float The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
double_t
|
最有效的浮点类型至少宽double
Original: most efficient floating-point type at least as wide as double The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Defined in header
<cstdlib> | |
div_t
|
结构类型,返回的std::div功能
Original: structure type, return of the std::div function The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
ldiv_t
|
结构类型,返回的std::ldiv功能
Original: structure type, return of the std::ldiv function The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
lldiv_t
|
结构类型,返回的std::lldiv功能
Original: structure type, return of the std::lldiv function The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Defined in header
<cinttypes> | |
imaxdiv_t
|
结构类型,返回的std::imaxdiv功能
Original: structure type, return of the std::imaxdiv function The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[编辑] 宏常量
Defined in header
<cmath> | |
(C++11) (C++11) |
float,doublelong double分别表示溢出值 Original: indicates the overflow value for float, double and long double respectively The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (宏不变) |
(C++11) |
计算结果为正无穷大或保证溢出float的价值 Original: evaluates to positive infinity or the value guaranteed to overflow a float The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (宏不变) |
(C++11) |
计算结果为NaN的类型float一个安静的 Original: evaluates to a quiet NaN of type float The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (宏不变) |
(C++11) (C++11) (C++11) |
使用常见的数学函数定义的错误处理机制 Original: defines the error handling mechanism used by the common mathematical functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (宏不变) |
Original: Classification The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
(C++11) (C++11) (C++11) (C++11) (C++11) |
表示浮点数的类别 Original: indicates a floating-point category The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (宏不变) |
Defined in header
<cfloat> |