std::exp2
De 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>
|
||
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 a la potencia dada
n
Original:
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 | - | flotando valor en puntos
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 a la
n
(es decir 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.
Si el resultado es demasiado grande para el tipo subyacente, se produce error de rango y devuelve HUGE_VAL .
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] Ver también
regresa e elevado a la potencia 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. (función) | |
(C++11) |
logaritmo en base 2 del 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. (función) |
calcula natural (base e) logaritmo (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. (función) | |
eleva un número a la potencia dada (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. (función) |