- Quater-imaginary base
The quater-imaginary
numeral system was first proposed byDonald Knuth in1955 , in a submission to a high-school science talent search. It is a non-standard positional numeral system which uses theimaginary number , 2"i", as its base. By analogy with thequaternary numeral system , it is able to represent everycomplex number using only the digits 0, 1, 2, and 3, without a sign.From quater-imaginary to decimal
To convert a digit string from the quater imaginary system to the decimal system, the standard formula for non-standard positional systems can be used. This says that a digit string in the quater imaginary system can be converted to a decimal number using the formula::.In this formula b = 2"i" for the quater-imaginary system.
Example
To convert the string to a decimal number, fill in the formula above::
The formula to calculate the decimal number from the quater-imaginary number can be extended when larger strings are used. So to find the decimal counterpart of use the formula extended to 7 digits.:So for and with b = 2"i" this gives::
Powers of 2"i"
When trying to find representations of the numbers from the quater-imaginary system to the decimal system, or vice-versa, the following table is useful:
{| class="wikitable" style="text-align:right"
-!Base 10!!Base 2"i"
-
−1"i"||0.2
-
−2"i"||1030.0
-
−3"i"||1030.2
-
−4"i"||1020.0
-
−5"i"||1020.2
-
−6"i"||1010.0
-
−7"i"||1010.2
-
−8"i"||1000.0
-
−9"i"||1000.2
-
−10"i"||2030.0
-
−11"i"||2030.2
-
−12"i"||2020.0
-
−13"i"||2020.2
-
−14"i"||2010.0
-
−15"i"||2010.2
-
−16"i"||2000.0Examples
Below are some other examples of conversions from decimal numbers to quater-imaginary numbers.
:
:
:
ee also
*
Complex base systems References
*D. Knuth. "The Art of Computer Programming". Volume 2, 3rd Edition. Addison-Wesley. pp. 205, "Positional Number Systems"
Wikimedia Foundation. 2010.