Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Binary number
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Square root=== The process of [[Methods of computing square roots#Binary numeral system (base 2)|taking a binary square root]] digit by digit is essentially the same as for a decimal square root but much simpler, due to the binary nature. First group the digits in pairs, using a leading 0 if necessary so there are an even number of digits. Now at each step, consider the answer so far, extended with the digits 01. If this can be subtracted from the current remainder, do so. Then extend the remainder with the next pair of digits. If you subtracted, the next digit of the answer is 1, otherwise it's 0. 1 1 1 1 1 0 1 1 0 1 ------------- ------------- ------------- ------------- ------------- β 10 10 10 01 β 10 10 10 01 β 10 10 10 01 β 10 10 10 01 β 10 10 10 01 - 1 - 1 - 1 - 1 Answer so far is 0, ---- ---- ---- ---- extended by 01 is 001, 1 10 1 10 1 10 1 10 this CAN be subtracted - 1 01 - 1 01 - 1 01 from first pair 10, Answer so far is 1, ------- ------- ------- so first digit of extended by 01 is 101, 1 10 1 10 01 1 10 01 answer is 1. this CAN be subtracted - 1 10 01 from remainder 110, so Answer so far is 11, Answer so far is 110, ---------- next answer digit is 1. extended by 01 is 1101, extended by 01 is 11001, 0 this is TOO BIG to this CAN be subtracted subtract from remainder from remainder 11001, so Done! 110, so next digit of next digit of answer is 1. answer is 0.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)