140 likes | 301 Views
CSE 8351 Computer Arithmetic Fall 2005 Instructor: Peter-Michael Seidel. Administrative Issues. Class times: TTh 5:00-6:20 Office hours: Seidel: W 2-3, Th 2-3 Course Webpage: http://engr.smu.edu/~seidel/courses/cse8351/ Class material
E N D
CSE 8351Computer ArithmeticFall 2005Instructor:Peter-Michael Seidel
Administrative Issues Class times:TTh 5:00-6:20 Office hours: Seidel: W 2-3, Th 2-3 Course Webpage:http://engr.smu.edu/~seidel/courses/cse8351/ Class material • Handouts, slides and references will be provided on course webpage Referenceswill be provided on WWW Computer Arithmetic Page (to be setup) Grade distribution • Project 40% • Paper Summaries/Presentation 40% • Examination 20% 8000 level - Research focus in class • Quality Research is based on a combination of • Knowledge (facts) / Skills (methodology) / Motivation (effort) Seidel - Fall 2005
Historical Perspectives Need Input to Compute • Numbers • How to represent them? • In early days very few people could write or had access to paper (writing was expensive) • Communication of numbers: with the purpose of trading • Numbers represented with hands, fingers and body parts Seidel - Fall 2005
Development of numbers • First number symbols found are about 6000 years old (in caves in stone) • 3300 years ago (Egypt): report on 422000 cowswon after a battle • 200 years ago (Micronesia) : Some Indian tribes can only count to 3 everything larger is called 4. • Counting started with fingers, stones, lines, cherry stones • Number range with fingers is very limited, is it ? • Counting possible, computing difficult • Combining of different symbols giving them different weights Seidel - Fall 2005
Development of numbers Roman numbers: I = 1 V = 5 X = 10 L = 50 C = 100 D = 500 M = 1000 2388 = MMCCCLXXXVIII (1000+1000+100+100+100+50+10+10+10+5+1+1+1=2388) Even counting is difficult Seidel - Fall 2005
Greek Enumeration and Basic Number Formation Use Greek Letters: with the three additional symbols: digamma koppa sampi Numbers < 1000 composed: Seidel - Fall 2005
More on Greek Numbers Larger Greek Numbers (apostrophe signals units of 1000) Fractions: Calculations: (multiplication based on distributive law) Seidel - Fall 2005
Types of numbers systems Additional Number Systems (Greece – Syria – China - Roman) • Number value is generated as addition of digits (independent of position), e.g. • Unary numbers: |, ||, |||, ||||, … Positional Number Systems (India - Arabic): • value of a digit depends not only on symbol, but also on position in the representation (that defines the weight of that digit) Which advantages do additional Number Systems have over Positional number systems for computation? Seidel - Fall 2005
Development of Numbers Numbers similar to ours developed around 600 a.D. Computing device still the fingers, but: 40 finger positions allowed number representations up to 200,000 also allows to compute Digital has been defined back then (latin Word: digitus (finger)). Promoted by Leonardo Fibonnacci (1170-1247) in his book on the Abacus(1202) allows not only to count, but also to compute 16th century: print digit letters 1 2 3 4 5 6 7 8 9 0 Seidel - Fall 2005
Computing devices Very early computing device: tally (write numbers in wood) Allow more computation with the Abacus: http://www.tux.org/~bagleyd/java/AbacusAppJS.html Allows to add and subtract. Multiplication and division requires additional tables Seidel - Fall 2005
Importance of Number Representations A German merchant of the fifteenth century asked an eminent professor where he should send his son for a good business education. The professor responded that German universities would be sufficient to teach the boy addition and subtraction but he would have to go to Italy to learn multiplication and division. Before you smile indulgently, try multiplying or even just adding the Roman numerals CCLXIV, MDCCCIX, DCL, and MLXXXI without first translating them. John Allen Paulos, Beyond Numeracy Seidel - Fall 2005
Simple Computing devices Multiplication and Division more complicated than addition subtraction => Motivation to reduce multiplication to addition Use Logarithms, reduce Multiplications to Additions Use of logarithm tables Corresponding Tool: Sliding rule Still in use in high schools 25 years ago, before calculators were used … http://www.et.htwk-leipzig.de/kontakte/Fechner/projekte/pc-hist/rechner2.htm Seidel - Fall 2005
Abacus Structure http://www.tux.org/~bagleyd/java/AbacusAppJS.html Seidel - Fall 2005
Abacus Operations Introduction and Counting: http://www.ee.ryerson.ca:8080/~elf/abacus/intro.html Addition: http://www.ee.ryerson.ca:8080/~elf/abacus/aaddition.html Subtraction: http://www.ee.ryerson.ca:8080/~elf/abacus/asubtraction.html Book (includes also Multiplication & Division, Square Roots, Cube Roots ): http://www.ee.ryerson.ca:8080/~elf/abacus/leeabacus/bagley/ Applet: http://www.tux.org/~bagleyd/java/AbacusAppJS.html Seidel - Fall 2005