Jump to content

Imaginary base numbers: Difference between revisions

Fix links
m (→‎{{header|Perl 6}}: Expand on precision and rounding parameters)
(Fix links)
Line 1:
{{draft task}}
 
Imaginary base numbers are a non-standard positional numeral system which uses an imaginary number as its radix. The most common is quater-imaginary with radix 2i. The quater-imaginary numeral system was first proposed by [https://en.wikipedia.org/wiki/Donald_Knuth| Donald Knuth] in 1955 as a submission for a high school science talent search. [http://www.fact-index.com/q/qu/quater_imaginary_base.html| [Ref.]]
 
Other imaginary bases are possible too but are not as widely discussed and aren't named.
Line 7:
'''Task:''' Write a set of procedures (functions, subroutines, however they are referred to in your language) to convert base 10 numbers to imaginary and back. At a minimum, support quater-imaginary (base 2i).
 
See [https://en.wikipedia.org/wiki/Quater-imaginary_base| Wikipedia: Quater-imaginary_base] for more details.
 
For reference, here are some some decimal and complex numbers converted to quater-imaginary.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.