Number Systems I. CIS008-2 Logic and Foundations of Mathematics. David Goodwin. 11:00, Tuesday 18 th October

Similar documents
Useful Number Systems

CSI 333 Lecture 1 Number Systems

Oct: 50 8 = 6 (r = 2) 6 8 = 0 (r = 6) Writing the remainders in reverse order we get: (50) 10 = (62) 8

NUMBER SYSTEMS. 1.1 Introduction

Positional Numbering System

Computer Science 281 Binary and Hexadecimal Review

Lecture 11: Number Systems

CPEN Digital Logic Design Binary Systems

2 Number Systems. Source: Foundations of Computer Science Cengage Learning. Objectives After studying this chapter, the student should be able to:

Base Conversion written by Cathy Saxton

Chapter 2. Binary Values and Number Systems

Section 1.4 Place Value Systems of Numeration in Other Bases

NUMBER SYSTEMS. William Stallings

Paramedic Program Pre-Admission Mathematics Test Study Guide

Number Systems and Radix Conversion

THE BINARY NUMBER SYSTEM

The string of digits in the binary number system represents the quantity

3. Convert a number from one number system to another

Common Core Standards for Fantasy Sports Worksheets. Page 1

LSN 2 Number Systems. ECT 224 Digital Computer Fundamentals. Department of Engineering Technology

COMP 250 Fall 2012 lecture 2 binary representations Sept. 11, 2012

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

2010/9/19. Binary number system. Binary numbers. Outline. Binary to decimal

Goals. Unary Numbers. Decimal Numbers. 3,148 is s 100 s 10 s 1 s. Number Bases 1/12/2009. COMP370 Intro to Computer Architecture 1

Number Conversions Dr. Sarita Agarwal (Acharya Narendra Dev College,University of Delhi)

Numeral Systems. The number twenty-five can be represented in many ways: Decimal system (base 10): 25 Roman numerals:

Binary Numbers. Binary Octal Hexadecimal

Digital System Design Prof. D Roychoudhry Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur

Unsigned Conversions from Decimal or to Decimal and other Number Systems

CS101 Lecture 11: Number Systems and Binary Numbers. Aaron Stevens 14 February 2011

=

Today. Binary addition Representing negative numbers. Andrew H. Fagg: Embedded Real- Time Systems: Binary Arithmetic

EE 261 Introduction to Logic Circuits. Module #2 Number Systems

Binary Number System. 16. Binary Numbers. Base 10 digits: Base 2 digits: 0 1

CS321. Introduction to Numerical Methods

Binary, Hexadecimal, Octal, and BCD Numbers

Activity 1: Using base ten blocks to model operations on decimals

COMPSCI 210. Binary Fractions. Agenda & Reading

Copy in your notebook: Add an example of each term with the symbols used in algebra 2 if there are any.

Recall the process used for adding decimal numbers. 1. Place the numbers to be added in vertical format, aligning the decimal points.

Lecture 8: Binary Multiplication & Division

Integer Operations. Overview. Grade 7 Mathematics, Quarter 1, Unit 1.1. Number of Instructional Days: 15 (1 day = 45 minutes) Essential Questions

Chapter Binary, Octal, Decimal, and Hexadecimal Calculations

3.1. RATIONAL EXPRESSIONS

Zero: If P is a polynomial and if c is a number such that P (c) = 0 then c is a zero of P.

Today s topics. Digital Computers. More on binary. Binary Digits (Bits)

plc numbers Encoded values; BCD and ASCII Error detection; parity, gray code and checksums

Chapter 7 Lab - Decimal, Binary, Octal, Hexadecimal Numbering Systems

Solve addition and subtraction word problems, and add and subtract within 10, e.g., by using objects or drawings to represent the problem.

MATH-0910 Review Concepts (Haugen)

Addition Methods. Methods Jottings Expanded Compact Examples = 15

Florida Math Correlation of the ALEKS course Florida Math 0018 to the Florida Mathematics Competencies - Lower

Machine Architecture and Number Systems. Major Computer Components. Schematic Diagram of a Computer. The CPU. The Bus. Main Memory.

Cyber Security Workshop Encryption Reference Manual

Prerequisite knowledge Students should have a good understanding of how our decimal number system works as well as understand place value.

Chapter 4 -- Decimals

Decimals Adding and Subtracting

Vocabulary Words and Definitions for Algebra

MATH 90 CHAPTER 1 Name:.

Lecture 2. Binary and Hexadecimal Numbers

2011, The McGraw-Hill Companies, Inc. Chapter 3

A Step towards an Easy Interconversion of Various Number Systems

YOU MUST BE ABLE TO DO THE FOLLOWING PROBLEMS WITHOUT A CALCULATOR!

MATHCOUNTS TOOLBOX Facts, Formulas and Tricks

Number and codes in digital systems

Supplemental Worksheet Problems To Accompany: The Pre-Algebra Tutor: Volume 1 Section 1 Real Numbers

PREPARATION FOR MATH TESTING at CityLab Academy

IT:101 Cisco Networking Academy I Subnetting

Continued Fractions and the Euclidean Algorithm

Sequential Skills. Strands and Major Topics

Irrational Numbers. A. Rational Numbers 1. Before we discuss irrational numbers, it would probably be a good idea to define rational numbers.

APPENDIX B. Routers route based on the network number. The router that delivers the data packet to the correct destination host uses the host ID.

Chapter 4: Computer Codes

Some facts about polynomials modulo m (Full proof of the Fingerprinting Theorem)

Decimal to Binary Conversion

Section 1.1 Real Numbers

Number Representation

Grade 6 Mathematics Performance Level Descriptors

Solution for Homework 2

47 Numerator Denominator

Lesson Plan. N.RN.3: Use properties of rational and irrational numbers.

Chapter 1: Digital Systems and Binary Numbers

Binary Representation

Free Pre-Algebra Lesson 55! page 1

Outline. hardware components programming environments. installing Python executing Python code. decimal and binary notations running Sage

CS 103X: Discrete Structures Homework Assignment 3 Solutions

Grade 6 Mathematics Assessment. Eligible Texas Essential Knowledge and Skills

Subnetting Examples. There are three types of subnetting examples I will show in this document:

9.3 OPERATIONS WITH RADICALS

MEP Y9 Practice Book A

Math 0980 Chapter Objectives. Chapter 1: Introduction to Algebra: The Integers.

Math Released Set Algebra 1 PBA Item #13 Two Real Numbers Defined M44105

VOL. 2, NO. 11, November 2012 ISSN ARPN Journal of Systems and Software AJSS Journal. All rights reserved

EVALUATING ACADEMIC READINESS FOR APPRENTICESHIP TRAINING Revised For ACCESS TO APPRENTICESHIP

Binary Representation. Number Systems. Base 10, Base 2, Base 16. Positional Notation. Conversion of Any Base to Decimal.

To convert an arbitrary power of 2 into its English equivalent, remember the rules of exponential arithmetic:

ADDITION. Children should extend the carrying method to numbers with at least four digits.

Number Sense and Operations

Polynomial and Synthetic Division. Long Division of Polynomials. Example 1. 6x 2 7x 2 x 2) 19x 2 16x 4 6x3 12x 2 7x 2 16x 7x 2 14x. 2x 4.

Elementary Number Theory and Methods of Proof. CSE 215, Foundations of Computer Science Stony Brook University

Transcription:

Number Systems I CIS008-2 Logic and Foundations of Mathematics David Goodwin david.goodwin@perisic.com 11:00, Tuesday 18 th October 2011

Outline 1 Number systems Numbers Natural numbers Integers Rational numbers Real numbers 2 Representation of Integers Decimal Binary Hexadecimal Deciaml to Base b 3 Problems

R. Dedekind Numbers are free creations of the human mind that serve as a medium for the easier and clearer understanding of the diversity of thought.

Systems of numbers natural numbers, 1,2,3,... integers,..., 3, 2, 1,0,1,2,3,... rational numbers real numbers complex numbers (not covered in this course)

Natural Numbers - N The set of Natural numbers are symbolised by N Sometimes called counting numbers All positive integers belong to the set of natural numbers. Zero is not a natural number 1,2,3,...

Integers - Z The set of integers are symbolised by Z The set of natural numbers belong to the set of integers Integers are whole numbers, including zero The set of natural numbers supplemented with zero and negative whole numbers is the set of integers..., 3, 2, 1,0,1,2,3,...

Rational numbers - Q The set of Rational numbers are symbolised by Q Ratios of integers are rational numbers Rational numbers produce other rational numbers when added, multiplied, subtracted, or divided. Integers belong to the set of rational numbers

Real numbers - R The set of Real numbers are symbolised by R Not all numbers are included in the set of integers and rational numbers π = 3.1415,... cannot be represented as any ratio of integers the solution to x 2 2 = 0 cannot be represented by any rational number numbers that cannot be represented by ratios of integers are known as irrational numbers The set of rational numbers, together with the set of irrational numbers is the set of real numbers

Decimal Number System 10 symbols are used (0, 1, 2, 3, 4, 5, 6, 7, 8, 9) Read from right to left. 1 st symbol represents 1 s (10 0 ), 2 nd represents 10 s (10 1 ), 3 rd represents 100 s (10 2 ),... etc. We call the value on which the number system is based the base of the system (base 10 in the decimal system).

Binary Number System 2 symbols are used (0, 1) Read from right to left. 1 st symbol represents 1 s (2 0 ), 2 nd represents 2 s (2 1 ), 3 rd represents 4 s (2 2 ),... etc. The base of the binary system is 2.

Binary Number System Example Binary to decimal 101101 2 = (1 2 5 )+(0 2 4 )+(1 2 3 )+(1 2 2 ) +(0 2 1 )+(1 2 0 ) 101101 2 = (1 32)+(0 16)+(1 8)+(1 4) +(0 2)+(1 1) 101101 2 = 32+8+4+1 101101 2 = 45 10

Hexadecimal Number System 16 symbols are used (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F) Read from right to left. 1 st symbol represents 1 s (16 0 ), 2 nd represents 16 s (16 1 ), 3 rd represents 256 s (16 2 ),... etc. The base of the Hexadecimal system is 16.

Hexadecimal Number System Example Hexadecimal to decimal B4F 16 = (11 16 2 )+(4 16 1 )+(15 16 0 ) B4F 16 = (11 256)+(4 16)+(15 1) B4F 16 = 2816+64+15 B4F 16 = 2895 10

Converting a decimal integer into Base b Example Convert the decimal number 3941 to an Octal number (Base 8): Successive division by 8, recording the remainder gives: 3941 8 remainder 5 1 s place 492 8 remainder 4 8 s place 61 8 remainder 5 8 2 s place 7 8 remainder 7 8 3 s place 3941 10 = 7545 8

Converting an integer from Base b to Decimal Write and algorithm in pseudocode that returns the decimal value of the base b integer c n c n 1...c 1 c 0. The variable n is used as an index in the sequence c. Converting a Decimal integer into Base b Write ans algorithm in pseudocode that converts the positive integer m into the base b integer c n c n 1...c 1 c 0. The variable n is used as an index in the sequence c. The value of m mod b is the remainder when m is divided by b. The value of [m/b] is the quotient when m is divided by b.

Adding Binary Numbers Write and algorithm in pseudocode that adds the binary numbers b n b n 1...b 1 b 0 and b n b n 1...b 1 b 0 and returns the sum s n+1 s n s n 1...s 1 s 0.