Way out base: 2i.

Slides:



Advertisements
Similar presentations
Complex Numbers – Add, Subtract, Multiply, and Divide
Advertisements

If R = {(x,y)| y = 3x + 2}, then R -1 = (1) x = 3y + 2 (2) y = (x – 2)/3 (3) {(x,y)| y = 3x + 2} (4) {(x,y)| y = (x – 2)/3} (5) {(x,y)| y – 2 = 3x} (6)
Prime Factorisation Factor Trees
Binary Addition Rules Adding Binary Numbers = = 1
Debugging CSC 171 FALL 2001 LECTURE 22. Project 4 Hardcopies are outside of CSB 722 All returns outside CSB 722.
CSE 246: Computer Arithmetic Algorithms and Hardware Design Instructor: Prof. Chung-Kuan Cheng Winter 2005 Lecture 1: Numbers.
COMS W1004 Introduction to Computer Science May 29, 2009.
1 times table 2 times table 3 times table 4 times table 5 times table
Programming Concepts Jacques Tiberghien office : Mobile :
Place Value from Millions to Thousandths
Timothy Foster CSCE 221H Pioneer Computer Artist ( present)
computer
Methods for Multiplying. Standard Algorithm Partial Products Draw table with dimensions of digits in each number. Ex.
Brief Introduction of Algorithm. What is Algorithm A method with several definite steps to effectively complete a task. In general, it starts from the.
1 Alphametic Puzzles Pi Mu Epsilon Dessert Presentation April 10, 2006.
CSC 395 – Software Engineering Lecture 2: Programming As Art & Intro to Software Engineering.
Let’s learn about it. 10.
Linear and Binary Search Algorithms
$100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300.
Tables Learning Support
Multiplying Decimals 6.NS.3 Fluently add, subtract, multiply and divide multi digit decimals using algorithms for each operation.
Solving 2 step equations. Two step equations have addition or subtraction and multiply or divide 3x + 1 = 10 3x + 1 = 10 4y + 2 = 10 4y + 2 = 10 2b +
Indexing and Ranking MICROPROCESSOR SYSTEMS – MAXELER PROJECT AUTHOR: NIKOLA MAKSIMOVIC 545/12.
MULTIPLYING DECIMALS Sixth Grade Math August 20, 2013.
Multiply By 2-Digit Numbers (B) Unit 2 Lesson 6. Objectives:
Solve –3j = Check your answer. –3j = 44.7 Notice j is being multiplied by –3. j = –14.9Simplify. Check –3j = 44.7 Check your solution in the original.
DigitValue Denotation NumericValue Denotation 2thousands1,000 0hundreds100 4tens10 8ones1 Computer Organization Basic Computer Concepts Number Systems.
YOUR VIRTUAL WORLD – THE HEXADECIMAL NUMBERING SYSTEM Prepared by Mrs. Christina Morris, July, 2014.
Linear and Binary Search Algorithms
Steps to Write Decimals as Fractions
Multiplying with Area Models Multi-digit by 1 digit
CSE3002 Team Project TOPIC TITLE
ID1050– Quantitative & Qualitative Reasoning
Multiplying Fractions
© The Author(s) Published by Science and Education Publishing.
Lesson 5-15 AP Computer Science Principles
Partial Products Algorithm for Multiplication
Times Tables.
Two Way Authentication
CSE4102 Team Project Prof. Steven A. Demurjian
Impact of Formal Methods in Biology and Medicine
Impact of Formal Methods in Biology and Medicine
Multiplication 2.
Knuth-Morris-Pratt KMP algorithm. [over binary alphabet]
Rates (unit Rate) Ratio Solving
Search and Find.
3-3 Side Effects A side effect is an action that results from the evaluation of an expression. For example, in an assignment, C first evaluates the expression.
Computation in Other Bases
CHECK TO MAKE SURE VOLUME IS TURNED UP.
Converting Between Fractions & Decimals
10:00.
Presentation By: Justin Corpron
Place Value: Expanding Whole Numbers 3 Ways
Designing Algorithms for Multiplication of Fractions
Knuth-Morris-Pratt Algorithm.
How do I solve a proportion?
The father of algorithm analysis
What role does place value have in whole number operations?
MULTI-DIGIT MULTIPLICATION.
Finding a specific e-journal
Efficient Huffman Decoding
Rocky K. C. Chang September 11, 2018
Two-digit by one-digit multiplication
3 times tables.
6 times tables.
Two-digit by one-digit multiplication
CSE4102/5102 Team Project TOPIC TITLE
Multiplying fraction- Cross multiplication method
ID1050– Quantitative & Qualitative Reasoning
Presentation transcript:

Way out base: 2i

Donald Knuth author of the seminal multi-volume work, “The Art of Computer Programming” the father of the analysis of algorithms creator of the TeX computer typesetting system and many, many other contributions see http://en.wikipedia.org/wiki/Donald_Knuth#Humor

Quater-imaginary base “The quater-imaginary numeral system was first proposed by Donald Knuth in 1955, in a submission to a high-school science talent search.” – from http://en.wikipedia.org/wiki/Quater-imaginary_base base: 2i digits: { 0, 1, 2, 3 }

Quater-imaginary base Example: What is 1032i in base 10?

Quater-imaginary base k (2i)k 0 1 1 2i 2 -4 3 -8i 4 16 5 32i 6 -64 7 -128i 8 256 Example: What is 1032i in base 10? First, let’s build a table for 2i powers. 1 x (2i)2 + 0 x (2i)1 + 3 x (2i)0 -4 + 0 + 3 -1

Quater-imaginary base Example: 11012i is (-3-8i)10 1 x (2i)3 + 1 x (2i)2 + 0 x (2i)1 + 1 x (2i)0 -8i - 4 + 0 + 1 -8i - 3

Quater-imaginary base Example: 10300032i is -1310 1 x (2i)6 + 0 x (2i)5 + 3 x (2i)4 + 0 x (2i)3 + 0 x (2i)2 + 0 x (2i)1 + 3 x (2i)0 -64 + 48 + 0 + 0 + 0 + 3 -13

Quater-imaginary base So what is 10.22i in base 10? 1 x (2i)1 + 0 x (2i)0 + 2 x (2i)-1 = 2i + 0 + 2 x 1 / (2i) = 2i + 2 / (2i) = 2i + 1 / i = 2i – i = i Does 1 / i = -i? Proof: i x (1/i) = -i x i (multiply both sides by i) i / i = - (i x i) 1 = - (-1) 1 = 1

In researching this presentation, I noticed something very interesting (and somewhat disturbing) . . .

Donald Knuth or Dwight from “The Office”?????