BitLength

BitLength[n]

整数 n を表すのに必要なバイナリビットの個数を与える.

詳細

  • 正の数 n に対して,BitLength[n]は,実質的にFloor[Log[2,n]]+1のより効率的なバージョンである.
  • 負の数 n に対しては,BitLength[BitNot[n]]に等価である.

例題

  (2)

プロットする:

Wolfram Research (2007), BitLength, Wolfram言語関数, https://reference.wolfram.com/language/ref/BitLength.html.

テキスト

Wolfram Research (2007), BitLength, Wolfram言語関数, https://reference.wolfram.com/language/ref/BitLength.html.

CMS

Wolfram Language. 2007. "BitLength." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/BitLength.html.

APA

Wolfram Language. (2007). BitLength. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/BitLength.html

BibTeX

@misc{reference.wolfram_2024_bitlength, author="Wolfram Research", title="{BitLength}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/BitLength.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_bitlength, organization={Wolfram Research}, title={BitLength}, year={2007}, url={https://reference.wolfram.com/language/ref/BitLength.html}, note=[Accessed: 22-November-2024 ]}