Espaços nominais
Variantes
Acções

std::log2

Da cppreference.com
< cpp‎ | numeric‎ | math

 
 
Biblioteca numéricos
Funções matemáticas comuns
De ponto flutuante ambiente
Números complexos
Matrizes numéricas
Pseudo-aleatório de geração de números
Tempo de compilação aritmética racional (C++11)
Genéricos operações numéricas
Original:
Generic numeric 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)
 
Funções matemáticas comuns
Funções
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Operações básicas
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)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
Funções exponenciais
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.
(C++11)
(C++11)
(C++11)
log2
(C++11)
Funções de poder
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.
(C++11)
(C++11)
Funções trigonométricas e hiperbólicas
Original:
Trigonometric and hyperbolic 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)
(C++11)
(C++11)
Erro e funções gamma
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)
(C++11)
(C++11)
(C++11)
Número inteiro mais próximo de operações de ponto flutuante
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.
(C++11)(C++11)(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
Flutuando funções de manipulação de pontos
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.
(C++11)(C++11)
(C++11)
(C++11)
(C++11)(C++11)
(C++11)
Classificação / Comparação
Original:
Classification/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)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
Constantes de macros
Original:
Macro constants
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)
 
Definido no cabeçalho <cmath>
float       log2( float arg );
(desde C++11)
double      log2( double arg );
(desde C++11)
long double log2( long double arg );
(desde C++11)
double      log2( Integral arg );
(desde C++11)
Calcula o logaritmo de base 2 de arg.
Original:
Computes the base 2 logarithm of arg.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Parâmetros

arg -
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

log
2
(arg)

Erro de domínio ocorre se arg é negativo. NAN é devolvido em caso.
Original:
Domain error occurs if arg is negative. NAN is returned in that case.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Faixa de erro ocorre se arg é 0. -HUGE_VAL é devolvido em caso.
Original:
Range error occurs if arg is 0. -HUGE_VAL is returned in that case.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Veja também

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) [edit]
(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) [edit]
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) [edit]