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
Quater-imaginary base
(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!
==Converting from quater-imaginary== {|class="wikitable" style="width:14em;float:right;margin-left:1em;" |+ Powers of 2''i'' |- !''k'' !(2''i'')<sup>''k''</sup> |- |align="center"| β5 ||align="center"| β''i''/32 |- |align="center"| β4 ||align="center"| 1/16 |- |align="center"| β3 ||align="center"| ''i''/8 |- |align="center"| β2 ||align="center"| β1/4 |- |align="center"| β1 ||align="center"| β''i''/2 |- |align="center"| 0 ||align="center"| 1 |- |align="center"| 1 ||align="center"| 2''i'' |- |align="center"| 2 ||align="center"| β4 |- |align="center"| 3 ||align="center"| β8''i'' |- |align="center"| 4 ||align="center"| 16 |- |align="center"| 5 ||align="center"| 32''i'' |- |align="center"| 6 ||align="center"| β64 |- |align="center"| 7 ||align="center"| β128''i'' |- |align="center"| 8 ||align="center"| 256 |} To convert a digit string from the quater-imaginary system to the decimal system, the standard formula for positional number systems can be used. This says that a digit string <math>\ldots d_3d_2d_1d_0</math> in base ''b'' can be converted to a decimal number using the formula :<math>\cdots + d_3\cdot b^3+d_2\cdot b^2+d_1\cdot b+d_0</math> For the quater-imaginary system, <math>b = 2i</math>. Additionally, for a given string <math>d</math> in the form <math>d_{w-1}, d_{w-2},\dots d_0</math>, the formula below can be used for a given string length <math>w</math> in base <math>b</math> :<math>Q2D_w \vec d \equiv \sum_{k=0}^{w-1} d_k \cdot b^k</math> ===Example=== To convert the string <math>1101_{2i}</math> to a decimal number, fill in the formula above: :<math>1\cdot(2i)^3 + 1\cdot(2i)^2 + 0\cdot(2i)^1 + 1\cdot(2i)^0 = -8i - 4 + 0 + 1 = -3 - 8i</math> Another, longer example: <math>1030003_{2i}</math> in base 10 is :<math>1\cdot(2i)^6 + 3\cdot(2i)^4 + 3\cdot(2i)^0 = -64 + 3\cdot 16 + 3 = -13</math>
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)