Chapter 9 - Number Systems
|
|
- Nathan Charles
- 5 years ago
- Views:
Transcription
1 Chapter 9 - Number Systems Luis Tarrataca luis.tarrataca@gmail.com CEFET-RJ L. Tarrataca Chapter 9 - Number Systems 1 / 50
2 1 Motivation 2 Positional Number Systems 3 Binary System L. Tarrataca Chapter 9 - Number Systems 2 / 50
3 4 Converting between Decimal and Binary 5 Hexadecimal Notation 6 References L. Tarrataca Chapter 9 - Number Systems 3 / 50
4 Motivation Motivation Lets start the semester with an easy subject: In everyday life how do you count numbers? Any ideas? L. Tarrataca Chapter 9 - Number Systems 4 / 50
5 Motivation Motivation Lets start the semester with an easy subject: In everyday life how do you count numbers? Any ideas? ;) 1 Fingers; 2 Fingers; 3 Fingers; 10 Fingers; L. Tarrataca Chapter 9 - Number Systems 5 / 50
6 Motivation Decimal system is used to represent numbers: Digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9; Consider the number 83: What does this mean using the decimal system? Any ideas? L. Tarrataca Chapter 9 - Number Systems 6 / 50
7 Motivation Example Consider the number 83: What does this mean using the decimal system? Any ideas? Number 10 was counted 8 times: 8 10 = Number 1 was counted 3 times: 3 = Combining these elements: I.e.: 83 = = L. Tarrataca Chapter 9 - Number Systems 7 / 50
8 Motivation Example Consider the number 4728: What does this mean using the decimal system? Any ideas? L. Tarrataca Chapter 9 - Number Systems 8 / 50
9 Motivation Exercise Consider the number 4728: What does this mean using the decimal system? Any ideas? Number 1000 was counted X times: Number 100 was counted Y times: Number 10 was counted Z times: Number 1 was counted D times: Combining these elements: L. Tarrataca Chapter 9 - Number Systems 9 / 50
10 Motivation Exercise Consider the number 4728: What does this mean using the decimal system? Any ideas? Number 1000 was counted 4 times: = Number 100 was counted 7 times: = Number 10 was counted 2 times: 2 10 = Number 1 was counted 8 times: 8 = Combining these elements: I.e.: 4728 = L. Tarrataca Chapter 9 - Number Systems 10 / 50
11 Motivation But what if we have decimal fractions? Any ideas? L. Tarrataca Chapter 9 - Number Systems 11 / 50
12 Motivation But what if we have decimal fractions? Any ideas? E.g.: how do we represent the number using the decimal system? L. Tarrataca Chapter 9 - Number Systems 12 / 50
13 Motivation Example Consider the number 0.256: What does this mean using the decimal system? Any ideas? Number 0.1 was counted 2 times: = Number 0.01 was counted 5 times: = Number was counted 6 times: = Combining these elements: I.e.: = L. Tarrataca Chapter 9 - Number Systems 13 / 50
14 Motivation But wait: What if we have an integer part and a fractional part? Any ideas? L. Tarrataca Chapter 9 - Number Systems 14 / 50
15 Motivation But wait: What if we have an integer part and a fractional part? Any ideas? E.g.: how do we represent the number using the decimal system? L. Tarrataca Chapter 9 - Number Systems 15 / 50
16 Motivation Example Consider the number : What does this mean using the decimal system? Any ideas? L. Tarrataca Chapter 9 - Number Systems 16 / 50
17 Motivation Exercise Consider the number : What does this mean using the decimal system? Any ideas? Number 100 was counted X times: Number 10 was counted Y times: Number 1 was counted Z times: Number 0.1 was counted Q times: Number 0.01 was counted W times: Number was counted E times: Combining these elements: I.e.: = L. Tarrataca Chapter 9 - Number Systems 17 / 50
18 Motivation Exercise Consider the number : What does this mean using the decimal system? Any ideas? Number 100 was counted 4 times: = Number 10 was counted 4 times: 4 10 = Number 1 was counted 2 times: 2 1 = Number 0.1 was counted 2 times: = Number 0.01 was counted 5 times: = Number was counted 6 times: = Combining these elements: I.e.: = L. Tarrataca Chapter 9 - Number Systems 18 / 50
19 Motivation Some important observations: Decimal system is said to have a base, or radix, of 10; In any number: Leftmost digit is referred to as the most significant digit (MSD); Rightmost digit is called the least significant digit (LSD); L. Tarrataca Chapter 9 - Number Systems 19 / 50
20 Motivation In conclusion: Figure: Positional Interpretation of a Decimal Number (Source: [Stallings, 2015]) In general, X where: X = { d 2 d 1 d 0.d 1 d 2 d 3 } X = i (d i 10 i ) L. Tarrataca Chapter 9 - Number Systems 20 / 50
21 Positional Number Systems Positional Number Systems Decimal system illustrates a positional number system (1/2): Each number is represented by a string of digits; Each digit position i has an associated weight r i : r is the radix / base of the system; General form of a number in such a system with radix r is: Where a i : 0 a i < r ( a 3 a 2 a 1 a 0.a 1 a 2 a 3 ) r L. Tarrataca Chapter 9 - Number Systems 21 / 50
22 Positional Number Systems Positional Number Systems Decimal system illustrates a positional number system (2/2): Number is defined to have the value: a 3 r 3 + a 2 r 2 + a 1 r 1 + a 0 r 0 + a 3 r 1 L. Tarrataca Chapter 9 - Number Systems 22 / 50
23 Positional Number Systems The question is: Do we really need to use the decimal system? Any ideas? Decimal system: Radix 10; Digits in the range 0 through 9 What if human beings had 12 fingers? L. Tarrataca Chapter 9 - Number Systems 23 / 50
24 Positional Number Systems What if human beings had 12 fingers? Radix 12; Digits in the range 0 through 11; L. Tarrataca Chapter 9 - Number Systems 24 / 50
25 Positional Number Systems Fun fact You think 12 fingers is weird? L. Tarrataca Chapter 9 - Number Systems 25 / 50
26 Positional Number Systems Fun fact You think 12 fingers is weird? Have a look at Polydactyly: L. Tarrataca Chapter 9 - Number Systems 26 / 50
27 Binary System Binary System Binary system only uses two digits: Radix / base 2; Binary digits 1 and 0 have the same meaning as in decimal notation: 0 2 = = 1 10 Also a positional number system: Each binary digit in a number has a value; L. Tarrataca Chapter 9 - Number Systems 27 / 50
28 Binary System Exercise 10 2 =? =? =? 10 L. Tarrataca Chapter 9 - Number Systems 28 / 50
29 Binary System Exercise 10 2 = (1 2 1 )+(0 2 0 ) = = (1 2 1 )+(1 2 0 ) = = (1 2 2 )+(0 2 1 )+(0 2 0 ) = 4 10 L. Tarrataca Chapter 9 - Number Systems 29 / 50
30 Binary System But what if are trying to represent a binary number with a fractional part? Any ideas? L. Tarrataca Chapter 9 - Number Systems 30 / 50
31 Binary System But what if are trying to represent a binary number with a fractional part? Any ideas? Binary number converts to what decimal number? L. Tarrataca Chapter 9 - Number Systems 31 / 50
32 Binary System Exercise =? 10 L. Tarrataca Chapter 9 - Number Systems 32 / 50
33 Binary System Exercise = = L. Tarrataca Chapter 9 - Number Systems 33 / 50
34 Binary System Remember this formula for the decimal system: X = { d 2 d 1 d 0.d 1 d 2 d 3 } X = i (d i 10 i ) What do you think would be the necessary changes for a binary system? Any ideas? L. Tarrataca Chapter 9 - Number Systems 34 / 50
35 Binary System Remember this formula for the decimal system: X = { d 2 d 1 d 0.d 1 d 2 d 3 } X = i (d i 10 i ) What do you think would be the necessary changes for a binary system? Any ideas? Radix / base has value 2; I.e.: X = i (d i 2 i ) L. Tarrataca Chapter 9 - Number Systems 35 / 50
36 Converting between Decimal and Binary Converting between Decimal and Binary How can we convert between decimal and binary numbers? Any ideas? L. Tarrataca Chapter 9 - Number Systems 36 / 50
37 Converting between Decimal and Binary Converting between Decimal and Binary How can we convert between decimal and binary numbers? Any ideas? Suppose we need to convert N from decimal into binary form (1/3): If we divide N by 2 we obtain a quotient N 1 and a remainder R 0 ; We then may write: N = 2 N 1 + R 0 R 0 = 0 or 1 L. Tarrataca Chapter 9 - Number Systems 37 / 50
38 Converting between Decimal and Binary Suppose we need to convert N from decimal into binary form (2/3): N 1 can also be divided by 2, then: N 1 = 2 N 2 + R 1 R 1 = 0 or 1 L. Tarrataca Chapter 9 - Number Systems 38 / 50
39 Converting between Decimal and Binary Suppose we need to convert N from decimal into binary form (3/3): N 2 can also be divided by 2, then: N 2 = 2 N 3 + R 2 R 2 = 0 or 1 Continuing this sequence will eventually produce: a quotient N m 1 = 1 a remainder R m 2 which is 0 or 1; L. Tarrataca Chapter 9 - Number Systems 39 / 50
40 Converting between Decimal and Binary We are now able to obtain the binary form: N = (R m 1 2 m 1 )+(R m 2 2 m 2 )+ +(R )+(R )+R 0 L. Tarrataca Chapter 9 - Number Systems 40 / 50
41 Converting between Decimal and Binary Example Figure: (Source: [Stallings, 2015]) L. Tarrataca Chapter 9 - Number Systems 41 / 50
42 Converting between Decimal and Binary Example Figure: (Source: [Stallings, 2015]) L. Tarrataca Chapter 9 - Number Systems 42 / 50
43 Converting between Decimal and Binary Exercise Converting the following decimal numbers into binary: 8 10 =? =? =? =? =? =? =? =? 2 L. Tarrataca Chapter 9 - Number Systems 43 / 50
44 Hexadecimal Notation Hexadecimal Notation In computation: All forms of data is represented in a binary fashion; Very cumbersome for human beings =( Most computer professionals prefer a more compact notation: Hexadecimal notation FTW! =) Binary digits are grouped into sets of four bits (nibble); Each possible combination of four binary digits is given a symbol; L. Tarrataca Chapter 9 - Number Systems 44 / 50
45 Hexadecimal Notation This is the hexadecimal table: Figure: (Source: [Stallings, 2015]) In general: Z = i (h i 16 i ) Radix / base has value 16; Each hexadecimal digit h i is in the decimal range 0 h i < 15; L. Tarrataca Chapter 9 - Number Systems 45 / 50
46 Hexadecimal Notation Figure: (Source: [Stallings, 2015]) L. Tarrataca Chapter 9 - Number Systems 46 / 50
47 Hexadecimal Notation Example 2C 16 =? 10 L. Tarrataca Chapter 9 - Number Systems 47 / 50
48 Hexadecimal Notation Example 2C 16 = ( )+(C ) = ( )+( ) = 44 L. Tarrataca Chapter 9 - Number Systems 48 / 50
49 Hexadecimal Notation This concludes this lession: Thank you for your time =) L. Tarrataca Chapter 9 - Number Systems 49 / 50
50 References References I Stallings, W. (2015). Computer Organization and Architecture. Pearson Education. L. Tarrataca Chapter 9 - Number Systems 50 / 50
MATH Dr. Halimah Alshehri Dr. Halimah Alshehri
MATH 1101 haalshehri@ksu.edu.sa 1 Introduction To Number Systems First Section: Binary System Second Section: Octal Number System Third Section: Hexadecimal System 2 Binary System 3 Binary System The binary
More informationNumber Theory: Representations of Integers
Instructions: In-class exercises are meant to introduce you to a new topic and provide some practice with the new topic. Work in a team of up to 4 people to complete this exercise. You can work simultaneously
More informationNUMBERS AND CODES CHAPTER Numbers
CHAPTER 2 NUMBERS AND CODES 2.1 Numbers When a number such as 101 is given, it is impossible to determine its numerical value. Some may say it is five. Others may say it is one hundred and one. Could it
More informationChapter 2 (Part 3): The Fundamentals: Algorithms, the Integers & Matrices. Integers & Algorithms (2.5)
CSE 54 Discrete Mathematics & Chapter 2 (Part 3): The Fundamentals: Algorithms, the Integers & Matrices Integers & Algorithms (Section 2.5) by Kenneth H. Rosen, Discrete Mathematics & its Applications,
More information0,..., r 1 = digits in radix r number system, that is 0 d i r 1 where m i n 1
RADIX r NUMBER SYSTEM Let (N) r be a radix r number in a positional weighting number system, then (N) r = d n 1 r n 1 + + d 0 r 0 d 1 r 1 + + d m r m where: r = radix d i = digit at position i, m i n 1
More informationCHAPTER 2 NUMBER SYSTEMS
CHAPTER 2 NUMBER SYSTEMS The Decimal Number System : We begin our study of the number systems with the familiar decimal number system. The decimal system contains ten unique symbol 0, 1, 2, 3, 4, 5, 6,
More information14:332:231 DIGITAL LOGIC DESIGN. Why Binary Number System?
:33:3 DIGITAL LOGIC DESIGN Ivan Marsic, Rutgers University Electrical & Computer Engineering Fall 3 Lecture #: Binary Number System Complement Number Representation X Y Why Binary Number System? Because
More informationFour Important Number Systems
Four Important Number Systems System Why? Remarks Decimal Base 10: (10 fingers) Most used system Binary Base 2: On/Off systems 3-4 times more digits than decimal Octal Base 8: Shorthand notation for working
More informationECE260: Fundamentals of Computer Engineering
Data Representation & 2 s Complement James Moscola Dept. of Engineering & Computer Science York College of Pennsylvania Based on Computer Organization and Design, 5th Edition by Patterson & Hennessy Data
More informationConversions between Decimal and Binary
Conversions between Decimal and Binary Binary to Decimal Technique - use the definition of a number in a positional number system with base 2 - evaluate the definition formula ( the formula ) using decimal
More informationBinary addition example worked out
Binary addition example worked out Some terms are given here Exercise: what are these numbers equivalent to in decimal? The initial carry in is implicitly 0 1 1 1 0 (Carries) 1 0 1 1 (Augend) + 1 1 1 0
More informationECE380 Digital Logic. Positional representation
ECE380 Digital Logic Number Representation and Arithmetic Circuits: Number Representation and Unsigned Addition Dr. D. J. Jackson Lecture 16-1 Positional representation First consider integers Begin with
More informationENGIN 112 Intro to Electrical and Computer Engineering
ENGIN 112 Intro to Electrical and Computer Engineering Lecture 3 More Number Systems Overview Hexadecimal numbers Related to binary and octal numbers Conversion between hexadecimal, octal and binary Value
More informationCSE 241 Digital Systems Spring 2013
CSE 241 Digital Systems Spring 2013 Instructor: Prof. Kui Ren Department of Computer Science and Engineering Lecture slides modified from many online resources and used solely for the educational purpose.
More information12/31/2010. Digital Operations and Computations Course Notes. 01-Number Systems Text: Unit 1. Overview. What is a Digital System?
Digital Operations and Computations Course Notes 0-Number Systems Text: Unit Winter 20 Professor H. Louie Department of Electrical & Computer Engineering Seattle University ECEGR/ISSC 20 Digital Operations
More informationWeek No. 06: Numbering Systems
Week No. 06: Numbering Systems Numbering System: A numbering system defined as A set of values used to represent quantity. OR A number system is a term used for a set of different symbols or digits, which
More informationDigital Circuits, Binary Numbering, and Logic Gates Cornerstone Electronics Technology and Robotics II
Digital Circuits, Binary Numbering, and Logic Gates Cornerstone Electronics Technology and Robotics II Administration: o Prayer Electricity and Electronics, Section 20.1, Digital Fundamentals: o Fundamentals:
More informationENGIN 112 Intro to Electrical and Computer Engineering
ENGIN 112 Intro to Electrical and Computer Engineering Lecture 2 Number Systems Russell Tessier KEB 309 G tessier@ecs.umass.edu Overview The design of computers It all starts with numbers Building circuits
More informationWe say that the base of the decimal number system is ten, represented by the symbol
Introduction to counting and positional notation. In the decimal number system, a typical number, N, looks like... d 3 d 2 d 1 d 0.d -1 d -2 d -3... [N1] where the ellipsis at each end indicates that there
More informationCISC 1400 Discrete Structures
CISC 1400 Discrete Structures Chapter 2 Sequences What is Sequence? A sequence is an ordered list of objects or elements. For example, 1, 2, 3, 4, 5, 6, 7, 8 Each object/element is called a term. 1 st
More informationNumbering Systems. Contents: Binary & Decimal. Converting From: B D, D B. Arithmetic operation on Binary.
Numbering Systems Contents: Binary & Decimal. Converting From: B D, D B. Arithmetic operation on Binary. Addition & Subtraction using Octal & Hexadecimal 2 s Complement, Subtraction Using 2 s Complement.
More informationNumber Bases. Ioan Despi. University of New England. August 4, 2013
Number Bases Ioan Despi despi@turing.une.edu.au University of New England August 4, 2013 Outline Ioan Despi AMTH140 2 of 21 1 Frequently Used Number Systems 2 Conversion to Numbers of Different Bases 3
More informationCounting in Different Number Systems
Counting in Different Number Systems Base 1 (Decimal) is important because that is the base that we first learn in our culture. Base 2 (Binary) is important because that is the base used for computer codes
More informationCSEN102 Introduction to Computer Science
CSEN102 Introduction to Computer Science Lecture 7: Representing Information I Prof. Dr. Slim Abdennadher Dr. Mohammed Salem, slim.abdennadher@guc.edu.eg, mohammed.salem@guc.edu.eg German University Cairo,
More informationEE260: Digital Design, Spring n Digital Computers. n Number Systems. n Representations. n Conversions. n Arithmetic Operations.
EE 260: Introduction to Digital Design Number Systems Yao Zheng Department of Electrical Engineering University of Hawaiʻi at Mānoa Overview n Digital Computers n Number Systems n Representations n Conversions
More information1 Computing System 2. 2 Data Representation Number Systems 22
Chapter 4: Computing System & Data Representation Christian Jacob 1 Computing System 2 1.1 Abacus 3 2 Data Representation 19 3 Number Systems 22 3.1 Important Number Systems for Computers 24 3.2 Decimal
More informationMenu. Review of Number Systems EEL3701 EEL3701. Math. Review of number systems >Binary math >Signed number systems
Menu Review of number systems >Binary math >Signed number systems Look into my... 1 Our decimal (base 10 or radix 10) number system is positional. Ex: 9437 10 = 9x10 3 + 4x10 2 + 3x10 1 + 7x10 0 We have
More informationYou separate binary numbers into columns in a similar fashion. 2 5 = 32
RSA Encryption 2 At the end of Part I of this article, we stated that RSA encryption works because it s impractical to factor n, which determines P 1 and P 2, which determines our private key, d, which
More information3 The fundamentals: Algorithms, the integers, and matrices
3 The fundamentals: Algorithms, the integers, and matrices 3.4 The integers and division This section introduces the basics of number theory number theory is the part of mathematics involving integers
More informationNumbers. Dr Hammadi Nait-Charif. Senior Lecturer Bournemouth University United Kingdom
Numbers Dr Hammadi Nait-Charif Senior Lecturer Bournemouth University United Kingdom hncharif@bournemouth.ac.uk http://nccastaff.bmth.ac.uk/hncharif/mathscgs/maths.html Dr Hammadi Nait-Charif (BU, UK)
More informationBase Number Systems. Honors Precalculus Mr. Velazquez
Base Number Systems Honors Precalculus Mr. Velazquez 1 Our System: Base 10 When we express numbers, we do so using ten numerical characters which cycle every multiple of 10. The reason for this is simple:
More informationof Digital Electronics
26 Digital Electronics 729 Digital Electronics 26.1 Analog and Digital Signals 26.3 Binary Number System 26.5 Decimal to Binary Conversion 26.7 Octal Number System 26.9 Binary-Coded Decimal Code (BCD Code)
More information4 Number Theory and Cryptography
4 Number Theory and Cryptography 4.1 Divisibility and Modular Arithmetic This section introduces the basics of number theory number theory is the part of mathematics involving integers and their properties.
More information5 + 9(10) + 3(100) + 0(1000) + 2(10000) =
Chapter 5 Analyzing Algorithms So far we have been proving statements about databases, mathematics and arithmetic, or sequences of numbers. Though these types of statements are common in computer science,
More information2.5 정수와알고리즘 (Integers and Algorithms)
이산수학 () 2.5 정수와알고리즘 (Integers and Algorithms) 2006 년봄학기 문양세강원대학교컴퓨터과학과 Introduction Base-b representations of integers. (b진법표현 ) Especially: binary, hexadecimal, octal. Also, two s complement representation
More informationBase-b representations of integers. (b 진법표현 ) Algorithms for computer arithmetic: Euclidean algorithm for finding GCD s.
이산수학 () 정수와알고리즘 (Integers and Algorithms) 2011년봄학기 강원대학교컴퓨터과학전공문양세 Introduction Base-b representations of integers. (b 진법표현 ) Especially: binary, hexadecimal, octal. Also, two s complement representation
More informationChapter 1 The Real Numbers
Chapter 1 The Real Numbers In a beginning course in calculus, the emphasis is on introducing the techniques of the subject;i.e., differentiation and integration and their applications. An advanced calculus
More informationExponential and logarithm functions
ucsc supplementary notes ams/econ 11a Exponential and logarithm functions c 2010 Yonatan Katznelson The material in this supplement is assumed to be mostly review material. If you have never studied exponential
More informationPart I, Number Systems. CS131 Mathematics for Computer Scientists II Note 1 INTEGERS
CS131 Part I, Number Systems CS131 Mathematics for Computer Scientists II Note 1 INTEGERS The set of all integers will be denoted by Z. So Z = {..., 2, 1, 0, 1, 2,...}. The decimal number system uses the
More informationRepresenting Numbers on the Computer
Representing Numbers on the Computer Let s calculate J! Program Maxnumber * * Check what the max numbers are on the computer * Integer N * * N= Do J=,2 N=N*J Print *,J,N Enddo stop end What happened? J
More informationDiscrete mathematics is the study of techniques, ideas and modes of
CHAPTER 1 Discrete Systems Discrete mathematics is the study of techniques, ideas and modes of reasoning that are indispensable in applied disciplines such as computer science or information technology.
More informationHakim Weatherspoon CS 3410 Computer Science Cornell University
Hakim Weatherspoon CS 3410 Computer Science Cornell University The slides are the product of many rounds of teaching CS 3410 by Professors Weatherspoon, Bala, Bracy, and Sirer. memory inst 32 register
More informationSail into Summer with Math!
Sail into Summer with Math! For Students Entering Algebra 1 This summer math booklet was developed to provide students in kindergarten through the eighth grade an opportunity to review grade level math
More informationMATH 521, WEEK 2: Rational and Real Numbers, Ordered Sets, Countable Sets
MATH 521, WEEK 2: Rational and Real Numbers, Ordered Sets, Countable Sets 1 Rational and Real Numbers Recall that a number is rational if it can be written in the form a/b where a, b Z and b 0, and a number
More informationQuantitative Aptitude
WWW.UPSCMANTRA.COM Quantitative Aptitude Concept 1 1. Number System 2. HCF and LCM 2011 Prelims Paper II NUMBER SYSTEM 2 NUMBER SYSTEM In Hindu Arabic System, we use ten symbols 0, 1, 2, 3, 4, 5, 6, 7,
More informationCIS102 Mathematics for Computing Volume 1
CIS102 Mathematics for Computing Volume 1 Update of 2nd Edition 2004 Carol Whitehead 3 December 2003 Contents Introduction iii 1 Numbers Systems 1 1.1 Number Bases.......................................
More informationDigital Systems Roberto Muscedere Images 2013 Pearson Education Inc. 1
Digital Systems Digital systems have such a prominent role in everyday life The digital age The technology around us is ubiquitous, that is we don t even notice it anymore Digital systems are used in:
More informationNumber System conversions
Number System conversions Number Systems The system used to count discrete units is called number system. There are four systems of arithmetic which are often used in digital electronics. Decimal Number
More information4. Number Theory (Part 2)
4. Number Theory (Part 2) Terence Sim Mathematics is the queen of the sciences and number theory is the queen of mathematics. Reading Sections 4.8, 5.2 5.4 of Epp. Carl Friedrich Gauss, 1777 1855 4.3.
More informationNatural Numbers: Also called the counting numbers The set of natural numbers is represented by the symbol,.
Name Period Date: Topic: Real Numbers and Their Graphs Standard: 9-12.A.1.3 Objective: Essential Question: What is the significance of a point on a number line? Determine the relative position on the number
More informationLong division for integers
Feasting on Leftovers January 2011 Summary notes on decimal representation of rational numbers Long division for integers Contents 1. Terminology 2. Description of division algorithm for integers (optional
More informationCHAPTER 7. Exercises 17/ / /2 2 0
CHAPTER 7 Exercises E7. (a) For the whole part, we have: Quotient Remainders 23/2 /2 5 5/2 2 2/2 0 /2 0 Reading the remainders in reverse order, we obtain: 23 0 = 0 2 For the fractional part we have 2
More informationN= {1,2,3,4,5,6,7,8,9,10,11,...}
1.1: Integers and Order of Operations 1. Define the integers 2. Graph integers on a number line. 3. Using inequality symbols < and > 4. Find the absolute value of an integer 5. Perform operations with
More informationMidterm Examination # 1 Wednesday, February 25, Duration of examination: 75 minutes
Page 1 of 10 School of Computer Science 60-265-01 Computer Architecture and Digital Design Winter 2009 Semester Midterm Examination # 1 Wednesday, February 25, 2009 Student Name: First Name Family Name
More informationENG2410 Digital Design Introduction to Digital Systems. Fall 2017 S. Areibi School of Engineering University of Guelph
ENG2410 Digital Design Introduction to Digital Systems Fall 2017 S. Areibi School of Engineering University of Guelph Resources Chapter #1, Mano Sections 1.1 Digital Computers 1.2 Number Systems 1.3 Arithmetic
More informationAlgorithms: Lecture 2
1 Algorithms: Lecture 2 Basic Structures: Sets, Functions, Sequences, and Sums Jinwoo Kim jwkim@jjay.cuny.edu 2.1 Sets 2 1 2.1 Sets 3 2.1 Sets 4 2 2.1 Sets 5 2.1 Sets 6 3 2.1 Sets 7 2.2 Set Operations
More informationMath /Foundations of Algebra/Fall 2017 Foundations of the Foundations: Proofs
Math 4030-001/Foundations of Algebra/Fall 017 Foundations of the Foundations: Proofs A proof is a demonstration of the truth of a mathematical statement. We already know what a mathematical statement is.
More informationPrepared by Sa diyya Hendrickson. Package Summary
Introduction Prepared by Sa diyya Hendrickson Name: Date: Package Summary Defining Decimal Numbers Things to Remember Adding and Subtracting Decimals Multiplying Decimals Expressing Fractions as Decimals
More informationDiscrete Mathematics GCD, LCM, RSA Algorithm
Discrete Mathematics GCD, LCM, RSA Algorithm Abdul Hameed http://informationtechnology.pk/pucit abdul.hameed@pucit.edu.pk Lecture 16 Greatest Common Divisor 2 Greatest common divisor The greatest common
More informationFYSE410 DIGITAL ELECTRONICS [1] [2] [3] [4] [5] A number system consists of an ordered set of symbols (digits).
FYSE4 DIGITAL ELECTRONICS Litterature: LECTURE [] [] [4] [5] DIGITAL LOGIC CIRCUIT ANALYSIS & DESIGN Victor P. Nelson, H. Troy Nagle J. David Irwin, ill D. Carroll ISN --4694- DIGITAL DESIGN M. Morris
More informationChapter 1 CSCI
Chapter 1 CSCI-1510-003 What is a Number? An expression of a numerical quantity A mathematical quantity Many types: Natural Numbers Real Numbers Rational Numbers Irrational Numbers Complex Numbers Etc.
More informationLecture 2. The Euclidean Algorithm and Numbers in Other Bases
Lecture 2. The Euclidean Algorithm and Numbers in Other Bases At the end of Lecture 1, we gave formulas for the greatest common divisor GCD (a, b), and the least common multiple LCM (a, b) of two integers
More informationWith Question/Answer Animations. Chapter 4
With Question/Answer Animations Chapter 4 Chapter Motivation Number theory is the part of mathematics devoted to the study of the integers and their properties. Key ideas in number theory include divisibility
More informationwhere Q is a finite set of states
Space Complexity So far most of our theoretical investigation on the performances of the various algorithms considered has focused on time. Another important dynamic complexity measure that can be associated
More informationMath 016 Lessons Wimayra LUY
Math 016 Lessons Wimayra LUY wluy@ccp.edu MATH 016 Lessons LESSON 1 Natural Numbers The set of natural numbers is given by N = {0, 1, 2, 3, 4...}. Natural numbers are used for two main reasons: 1. counting,
More informationLongest Common Prefixes
Longest Common Prefixes The standard ordering for strings is the lexicographical order. It is induced by an order over the alphabet. We will use the same symbols (,
More informationMat Week 8. Week 8. gcd() Mat Bases. Integers & Computers. Linear Combos. Week 8. Induction Proofs. Fall 2013
Fall 2013 Student Responsibilities Reading: Textbook, Section 3.7, 4.1, & 5.2 Assignments: Sections 3.6, 3.7, 4.1 Proof Worksheets Attendance: Strongly Encouraged Overview 3.6 Integers and Algorithms 3.7
More informationStudent Responsibilities Week 8. Mat Section 3.6 Integers and Algorithms. Algorithm to Find gcd()
Student Responsibilities Week 8 Mat 2345 Week 8 Reading: Textbook, Section 3.7, 4.1, & 5.2 Assignments: Sections 3.6, 3.7, 4.1 Induction Proof Worksheets Attendance: Strongly Encouraged Fall 2013 Week
More informationTHE LOGIC OF COMPOUND STATEMENTS
CHAPTER 2 THE LOGIC OF COMPOUND STATEMENTS Copyright Cengage Learning. All rights reserved. SECTION 2.4 Application: Digital Logic Circuits Copyright Cengage Learning. All rights reserved. Application:
More informationCSCI 255. S i g n e d N u m s / S h i f t i n g / A r i t h m e t i c O p s.
Ying.Yang 1.-1 CSCI 255 http://cs.furman.edu In mathematics, negative integers exists -> forced to do it binary In a binary string, the MSB is sacrificed as the signed bit 0 => Positive Value 1 => Negative
More informationHow do computers represent numbers?
How do computers represent numbers? Tips & Tricks Week 1 Topics in Scientific Computing QMUL Semester A 2017/18 1/10 What does digital mean? The term DIGITAL refers to any device that operates on discrete
More informationDigital Systems Overview. Unit 1 Numbering Systems. Why Digital Systems? Levels of Design Abstraction. Dissecting Decimal Numbers
Unit Numbering Systems Fundamentals of Logic Design EE2369 Prof. Eric MacDonald Fall Semester 2003 Digital Systems Overview Digital Systems are Home PC XBOX or Playstation2 Cell phone Network router Data
More informationIntroduction CSE 541
Introduction CSE 541 1 Numerical methods Solving scientific/engineering problems using computers. Root finding, Chapter 3 Polynomial Interpolation, Chapter 4 Differentiation, Chapter 4 Integration, Chapters
More informationIntroduction to Quantum Computation
Introduction to Quantum Computation Ioan Burda Introduction to Quantum Computation Copyright 2005 Ioan Burda All rights reserved. Universal Publishers Boca Raton, Florida USA 2005 ISBN: 1-58112- 466-X
More informationWhat Fun! It's Practice with Scientific Notation!
What Fun! It's Practice with Scientific Notation! Review of Scientific Notation Scientific notation provides a place to hold the zeroes that come after a whole number or before a fraction. The number 100,000,000
More informationComputer Architecture 10. Residue Number Systems
Computer Architecture 10 Residue Number Systems Ma d e wi t h Op e n Of f i c e. o r g 1 A Puzzle What number has the reminders 2, 3 and 2 when divided by the numbers 7, 5 and 3? x mod 7 = 2 x mod 5 =
More informationCOT 3100 Applications of Discrete Structures Dr. Michael P. Frank
University of Florida Dept. of Computer & Information Science & Engineering COT 3100 Applications of Discrete Structures Dr. Michael P. Frank Slides for a Course Based on the Text Discrete Mathematics
More informationLecture notes on Turing machines
Lecture notes on Turing machines Ivano Ciardelli 1 Introduction Turing machines, introduced by Alan Turing in 1936, are one of the earliest and perhaps the best known model of computation. The importance
More informationCSE 20: Discrete Mathematics
Spring 2018 Summary So far: Today: Logic and proofs Divisibility, modular arithmetics Number Systems More logic definitions and proofs Reading: All of Chap. 1 + Chap 4.1, 4.2. Divisibility P = 5 divides
More informationBinary Arithmetic: counting with ones
Binary Arithmetic: counting with ones Robin McLean 28 February 2015 Weighing in ounces Suppose we have one of each of the following weights: 32oz, 16oz, 8oz, 4oz, 2oz and 1oz. Can we weigh any whole number
More informationReview of Functions. Functions. Philippe B. Laval. Current Semester KSU. Philippe B. Laval (KSU) Functions Current Semester 1 / 12
Review of Functions Functions Philippe B. Laval KSU Current Semester Philippe B. Laval (KSU) Functions Current Semester 1 / 12 Introduction Students are expected to know the following concepts about functions:
More informationFloating Point Number Systems. Simon Fraser University Surrey Campus MACM 316 Spring 2005 Instructor: Ha Le
Floating Point Number Systems Simon Fraser University Surrey Campus MACM 316 Spring 2005 Instructor: Ha Le 1 Overview Real number system Examples Absolute and relative errors Floating point numbers Roundoff
More informationIntroduction to Number Theory. The study of the integers
Introduction to Number Theory The study of the integers of Integers, The set of integers = {... 3, 2, 1, 0, 1, 2, 3,...}. In this lecture, if nothing is said about a variable, it is an integer. Def. We
More informationIntroduction Integers. Discrete Mathematics Andrei Bulatov
Introduction Integers Discrete Mathematics Andrei Bulatov Discrete Mathematics - Integers 9- Integers God made the integers; all else is the work of man Leopold Kroenecker Discrete Mathematics - Integers
More informationThe Euclidean Algorithm and Multiplicative Inverses
1 The Euclidean Algorithm and Multiplicative Inverses Lecture notes for Access 2009 The Euclidean Algorithm is a set of instructions for finding the greatest common divisor of any two positive integers.
More informationNumber theory (Chapter 4)
EECS 203 Spring 2016 Lecture 10 Page 1 of 8 Number theory (Chapter 4) Review Questions: 1. Does 5 1? Does 1 5? 2. Does (129+63) mod 10 = (129 mod 10)+(63 mod 10)? 3. Does (129+63) mod 10 = ((129 mod 10)+(63
More informationFundamentals of Digital Design
Fundamentals of Digital Design Digital Radiation Measurement and Spectroscopy NE/RHP 537 1 Binary Number System The binary numeral system, or base-2 number system, is a numeral system that represents numeric
More informationNumber Systems. There are 10 kinds of people those that understand binary, those that don t, and those that expected this joke to be in base 2
Number Systems There are 10 kinds of people those that understand binary, those that don t, and those that expected this joke to be in base 2 A Closer Look at the Numbers We Use What is the difference
More informationChapter 1: Preliminaries and Error Analysis
Chapter 1: Error Analysis Peter W. White white@tarleton.edu Department of Tarleton State University Summer 2015 / Numerical Analysis Overview We All Remember Calculus Derivatives: limit definition, sum
More informationStandard forms for writing numbers
Standard forms for writing numbers In order to relate the abstract mathematical descriptions of familiar number systems to the everyday descriptions of numbers by decimal expansions and similar means,
More informationWith Question/Answer Animations
Chapter 5 With Question/Answer Animations Copyright McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education. Chapter Summary
More informationGCSE AQA Mathematics. Numbers
GCSE Mathematics Numbers Md Marufur Rahman Msc Sustainable Energy Systems Beng (Hons) Mechanical Engineering Bsc (Hons) Computer science & engineering GCSE AQA Mathematics 215/16 Table of Contents Introduction:...
More informationHomework Assignment 6 Answers
Homework Assignment 6 Answers CSCI 2670 Introduction to Theory of Computing, Fall 2016 December 2, 2016 This homework assignment is about Turing machines, decidable languages, Turing recognizable languages,
More informationInformatics 1 - Computation & Logic: Tutorial 3
Informatics 1 - Computation & Logic: Tutorial 3 Counting Week 5: 16-20 October 2016 Please attempt the entire worksheet in advance of the tutorial, and bring all work with you. Tutorials cannot function
More informationWorking with Square Roots. Return to Table of Contents
Working with Square Roots Return to Table of Contents 36 Square Roots Recall... * Teacher Notes 37 Square Roots All of these numbers can be written with a square. Since the square is the inverse of the
More informationBeyond Whole Number Bases
Beyond Whole Number Bases Figure 1: Here is a Venn diagram representing the various subsets of the real numbers. As you can see there are many types of real numbers, why restrict ourselves to positive
More informationDiscrete Mathematics and Probability Theory Fall 2018 Alistair Sinclair and Yun Song Note 6
CS 70 Discrete Mathematics and Probability Theory Fall 2018 Alistair Sinclair and Yun Song Note 6 1 Modular Arithmetic In several settings, such as error-correcting codes and cryptography, we sometimes
More informationDesign of Digital Circuits Reading: Binary Numbers. Required Reading for Week February 2017 Spring 2017
Design of Digital Circuits Reading: Binary Numbers Required Reading for Week 1 23-24 February 2017 Spring 2017 Binary Numbers Design of Digital Circuits 2016 Srdjan Capkun Frank K. Gürkaynak http://www.syssec.ethz.ch/education/digitaltechnik_16
More informationNumber Bases. Ideally this should lead to discussions on polynomials see Polynomials Question Sheet.
Number Bases Summary This lesson is an exploration of number bases. There are plenty of resources for this activity on the internet, including interactive activities. Please feel free to supplement the
More informationScientific Notation. exploration. 1. Complete the table of values for the powers of ten M8N1.j. 110 Holt Mathematics
exploration Georgia Performance Standards M8N1.j 1. Complete the table of values for the powers of ten. Exponent 6 10 6 5 10 5 4 10 4 Power 3 10 3 2 10 2 1 1 0 2 1 0.01 10 10 1 10 1 1 1 0 1 1 0.1 10 0
More information