std::exp2
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. |
Definido no cabeçalho <cmath>
|
||
double exp2( double n ); |
(desde C++11) | |
float exp2( float n ); |
(desde C++11) | |
long double exp2( long double n ); |
(desde C++11) | |
double exp2( Integral n ); |
(desde C++11) | |
Calcula 2 elevado à
n
poder dadoOriginal:
Computes 2 raised to the given power
n
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[editar] Parâmetros
n | - | flutuando valor de ponto
Original: 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. |
[editar] Valor de retorno
2 elevado à
n
(i.e. 2n
)Original:
2 raised to the
n
(i.e. 2n
)The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Se o resultado é muito grande para o tipo de base, o erro ocorre gama e HUGE_VAL é retornado.
Original:
If the result is too large for the underlying type, range error occurs and HUGE_VAL is returned.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[editar] Veja também
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) |
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) |
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) | |
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) |