Common mathematical functions
Da 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. |
[editar] Funções
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) |
calcula o valor absoluto de um valor integral (|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. (função) |
valor absoluto de um valor de ponto flutuante (|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. (função) | |
(C++11) |
o quociente eo resto da divisão inteira 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. (função) |
restante da operação de ponto flutuante de divisão 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. (função) | |
(C++11) |
assinado restante da operação de divisão 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. (função) |
(C++11) |
assinado restante, bem como os três últimos bits da operação de divisão 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. (função) |
(C++11) |
operação de multiplicar-adicionar fundido 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. (função) |
(C++11) |
maior de dois valores de ponto flutuante 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. (função) |
(C++11) |
menor dos dois valores de ponto flutuante 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. (função) |
(C++11) |
diferença positiva de dois valores de ponto flutuante (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. (função) |
(C++11) (C++11) (C++11) |
não-número (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. (função) |
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. | |
retorna e elevado à potência dada (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. (função) | |
(C++11) |
retorna 2 elevado à potência dada (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. (função) |
(C++11) |
retorna e elevado à potência dada, menos um (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. (função) |
calcula natural (base e) logaritmo (de base 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. (função) | |
calcula comum (base 10) logaritmo (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. (função) | |
(C++11) |
logaritmo natural (a base e) de 1 mais o número dado 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. (função) |
(C++11) |
logaritmo base 2 do número dado 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. (função) |
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. | |
Calcula a raiz quadrada (√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. (função) | |
(C++11) |
Calcula a raiz cúbica (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. (função) |
(C++11) |
calcula a raiz quadrada da soma dos quadrados dos dois números (√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. (função) |
levanta uma série para o poder dado (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. (função) | |
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. | |
calcula seno (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. (função) | |
calcula cosseno (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. (função) | |
calcula tangente (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. (função) | |
calcula arco seno (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. (função) | |
calcula arco cosseno (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. (função) | |
calcula do arco tangente (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. (função) | |
arco tangente, usando sinais para determinar quadrantes 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. (função) | |
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. | |
calcula seno hiperbólico (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. (função) | |
calcula cosseno hiperbólico (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. (função) | |
tangente hiperbólica 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. (função) | |
(C++11) |
arco seno hiperbólico 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. (função) |
(C++11) |
hiperbólica arco cosseno 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. (função) |
(C++11) |
arco tangente hiperbólica 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. (função) |
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) |
função de erro 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. (função) |
(C++11) |
função de erro complementar 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. (função) |
(C++11) |
logaritmo natural da função gama 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. (função) |
(C++11) |
gama de funções 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. (função) |
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. | |
número inteiro mais próximo, pelo menos, o valor dado 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. (função) | |
número inteiro mais próximo não maior do que o valor especificado 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. (função) | |
(C++11) |
número inteiro mais próximo não maior em magnitude do que o valor dado 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. (função) |
(C++11) (C++11) (C++11) |
número inteiro mais próximo de arredondamento, de zero em casos meio 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. (função) |
(C++11) |
número inteiro mais próximo utilizando o modo de arredondamento correntes 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. (função) |
(C++11) (C++11) (C++11) |
número inteiro mais próximo usando o modo de arredondamento atual com exceção se o resultado é diferente 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. (função) |
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. | |
decompõe um número em significand e um poder de 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. (função) | |
multiplica um número por 2 elevado a uma potência 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. (função) | |
decompõe um número em partes inteira e fracionária 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. (função) | |
(C++11) (C++11) |
multiplica um número por FLT_RADIX elevado a uma potência 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. (função) |
(C++11) |
extrai expoente do número 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. (função) |
(C++11) |
extrai expoente do número 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. (função) |
(C++11) (C++11) |
valor próximo ponto flutuante representável para o valor fornecido 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. (função) |
(C++11) |
copia o sinal de um valor de ponto flutuante 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. (função) |
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) |
categoriza o valor determinado ponto flutuante 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. (função) |
(C++11) |
Verifica se o número dado tem um valor finito 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. (função) |
(C++11) |
verifica se o número dado é infinito 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. (função) |
(C++11) |
Verifica se o número dado é 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. (função) |
(C++11) |
verifica se o número dado é normal 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. (função) |
(C++11) |
Verifica se o número dado é negativo 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. (função) |
(C++11) |
verifica se o argumento de ponto flutuante primeiro é maior do que o segundo 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. (função) |
(C++11) |
Verifica se o argumento de ponto flutuante primeira é maior ou igual do que o segundo 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. (função) |
(C++11) |
verifica se o argumento de ponto flutuante primeiro é menor do que o segundo 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. (função) |
(C++11) |
Verifica se o argumento de ponto flutuante primeira é menor ou igual do que o segundo 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. (função) |
(C++11) |
verifica se o argumento de ponto flutuante primeiro é menor ou maior do que o segundo 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. (função) |
(C++11) |
Verifica se dois valores de ponto flutuante são desordenadas 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. (função) |
[editar] Tipos
Defined in header
<cmath> | |
float_t
|
mais eficiente do tipo de ponto flutuante, pelo menos, tão largo quanto 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
|
mais eficiente do tipo de ponto flutuante, pelo menos, tão largo quanto 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
|
tipo de estrutura, o retorno da função 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
|
tipo de estrutura, o retorno da função 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
|
tipo de estrutura, o retorno da função 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
|
tipo de estrutura, o retorno da função 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. |
[editar] Constantes de macros
Defined in header
<cmath> | |
(C++11) (C++11) |
indica o valor de estouro de float, double e long double respectivamente 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. (macro constante) |
(C++11) |
avaliada como infinito positivo ou o valor garantido para estourar um 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. (macro constante) |
(C++11) |
avalia um NaN tranquila de float tipo 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. (macro constante) |
(C++11) (C++11) (C++11) |
define o mecanismo de tratamento de erros usado pelas funções matemáticas comuns 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. (macro constante) |
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) |
indica uma categoria de ponto flutuante 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. (macro constante) |
Defined in header
<cfloat> |