We deliver solutions for the AI eraâcombining symbolic computation, data-driven insights and deep technology expertise.
BitSet[n,k]
sets to 1 the bit corresponding to the coefficient of in the integer n.
DetailsDisplay coefficients at powers of 2 in the integer 42:
Set the bit corresponding to the coefficient at 20 to 1:
Set the bit corresponding to the coefficient at 24:
Scope (1)BitSet automatically creates an integer of the necessary size:
Applications (1)Generate a number in which specified bits are set:
Show which bits have been set:
Wolfram Research (2007), BitSet, Wolfram Language function, https://reference.wolfram.com/language/ref/BitSet.html. TextWolfram Research (2007), BitSet, Wolfram Language function, https://reference.wolfram.com/language/ref/BitSet.html.
CMSWolfram Language. 2007. "BitSet." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/BitSet.html.
APAWolfram Language. (2007). BitSet. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/BitSet.html
BibTeX@misc{reference.wolfram_2025_bitset, author="Wolfram Research", title="{BitSet}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/BitSet.html}", note=[Accessed: 12-July-2025 ]}
BibLaTeX@online{reference.wolfram_2025_bitset, organization={Wolfram Research}, title={BitSet}, year={2007}, url={https://reference.wolfram.com/language/ref/BitSet.html}, note=[Accessed: 12-July-2025 ]}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4