Quater-imaginary Base — Definition, Formula & Example
Quater-imaginary base is a place-value system that uses the imaginary number as its base and only the digits 0, 1, 2, and 3. A single string of these digits can name any complex number without a minus sign or a separate imaginary part.
The quater-imaginary system, introduced by Donald Knuth in 1960, writes a complex number as with each digit . Every complex number has such an expansion. Every Gaussian integer needs at most one digit after the radix point, whose place value is . For example, . Even-numbered positions carry the powers , which are real, and odd-numbered positions carry purely imaginary place values.
Key Formula
Where:
- = The complex number the numeral represents
- = The digit in position k, always 0, 1, 2, or 3
- = The position index: 0 for the ones place, increasing to the left and negative after the radix point
- = The base, where i is the imaginary unit with i squared equal to -1
Worked Example
Problem: Convert the quater-imaginary numeral to the standard form .
Step 1: Find the place values. Moving right to left, they are through . Their signs follow a 4-step cycle because .
Step 2: Multiply each digit by its place value. The digits from left to right are 1, 1, 3, 0, 1.
Step 3: Group the real terms and the imaginary terms. The real terms come from the even positions, and the imaginary terms come from the odd positions.
Answer:
Why It Matters
Knuth proposed this system in a 1960 paper, and later discussed it in The Art of Computer Programming, as a way for a computer to store a complex number as one digit string. The machine then needs no sign bit and no separate real and imaginary registers. Addition and multiplication can be done digit by digit, although carries behave differently than in base 10. The system also appears in courses on number systems and in the study of Gaussian integers.
Common Mistakes
Mistake: Treating as or as , as if the base behaved like a positive real number.
Correction: Because , the place values cycle through the signs . So and . Write out each power before you multiply.
