std::log2
提供: cppreference.com
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
Defined in header <cmath>
|
||
float log2( float arg ); |
(C++11およびそれ以降) | |
double log2( double arg ); |
(C++11およびそれ以降) | |
long double log2( long double arg ); |
(C++11およびそれ以降) | |
double log2( Integral arg ); |
(C++11およびそれ以降) | |
2のベース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.
You can help to correct and verify the translation. Click here for instructions.
[編集] パラメータ
arg | - | 浮動小数点値
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. |
[編集] 値を返します
log
2(arg)
arg
が負の場合はドメイン·エラーが発生します。 NANはその場合に返されます.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.
You can help to correct and verify the translation. Click here for instructions.
arg
0場合、範囲エラーが発生します。 -HUGE_VALはその場合に返されます. Original:
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.
[編集] 参照
計算する自然(底 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. (関数) | |
(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. (関数) |
計算するコモン(ベース 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. (関数) |