Numbers. Dr Hammadi Nait-Charif. Senior Lecturer Bournemouth University United Kingdom

Similar documents
MATH Dr. Halimah Alshehri Dr. Halimah Alshehri

Four Important Number Systems

Conversions between Decimal and Binary

NUMBERS AND CODES CHAPTER Numbers

Week No. 06: Numbering Systems

CSEN102 Introduction to Computer Science

A number that can be written as, where p and q are integers and q Number.

12/31/2010. Digital Operations and Computations Course Notes. 01-Number Systems Text: Unit 1. Overview. What is a Digital System?

Menu. Review of Number Systems EEL3701 EEL3701. Math. Review of number systems >Binary math >Signed number systems

Natural Numbers: Also called the counting numbers The set of natural numbers is represented by the symbol,.

Quantitative Aptitude

Numbering Systems. Contents: Binary & Decimal. Converting From: B D, D B. Arithmetic operation on Binary.

Classify, graph, and compare real numbers. Find and estimate square roots Identify and apply properties of real numbers.

ECE380 Digital Logic. Positional representation

UNIT 4 NOTES: PROPERTIES & EXPRESSIONS

Irrational Numbers Study Guide

The standard form for a general polynomial of degree n is written. Examples of a polynomial in standard form

CISC 1400 Discrete Structures

Math-2A Lesson 2-1. Number Systems

1 Computing System 2. 2 Data Representation Number Systems 22

P.1. Real Numbers. Copyright 2011 Pearson, Inc.

NAME DATE PERIOD. A negative exponent is the result of repeated division. Extending the pattern below shows that 4 1 = 1 4 or 1. Example: 6 4 = 1 6 4

CHAPTER 1 REAL NUMBERS KEY POINTS

CHAPTER 2 NUMBER SYSTEMS

Mat Week 8. Week 8. gcd() Mat Bases. Integers & Computers. Linear Combos. Week 8. Induction Proofs. Fall 2013

Discrete mathematics is the study of techniques, ideas and modes of

Student Responsibilities Week 8. Mat Section 3.6 Integers and Algorithms. Algorithm to Find gcd()

0,..., r 1 = digits in radix r number system, that is 0 d i r 1 where m i n 1

Base Number Systems. Honors Precalculus Mr. Velazquez

Class IX Chapter 1 Number Sustems Maths

Day 6: 6.4 Solving Polynomial Equations Warm Up: Factor. 1. x 2-2x x 2-9x x 2 + 6x + 5

Number Bases. Ioan Despi. University of New England. August 4, 2013

Chapter 9 - Number Systems

Prepared by Sa diyya Hendrickson. Package Summary

Chapter 1 CSCI

Register machines L2 18

Apply basic properties of real and complex numbers in constructing mathematical arguments (e.g., if a < b and c < 0, then ac > bc)

Part I, Number Systems. CS131 Mathematics for Computer Scientists II Note 1 INTEGERS

CSE 20 DISCRETE MATH. Fall

We say that the base of the decimal number system is ten, represented by the symbol

Solutions to Assignment 1

not to be republished NCERT REAL NUMBERS CHAPTER 1 (A) Main Concepts and Results

MA 180 Lecture. Chapter 0. College Algebra and Calculus by Larson/Hodgkins. Fundamental Concepts of Algebra

Section 1.1 Notes. Real Numbers

Chapter 3: Factors, Roots, and Powers

ENGIN 112 Intro to Electrical and Computer Engineering

Math 110 (S & E) Textbook: Calculus Early Transcendentals by James Stewart, 7 th Edition

Skills Practice Skills Practice for Lesson 4.1

Math-2 Section 1-1. Number Systems

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

(i) 2-5 (ii) (3 + 23) - 23 (v) 2π

14:332:231 DIGITAL LOGIC DESIGN. Why Binary Number System?

NUMBERS( A group of digits, denoting a number, is called a numeral. Every digit in a numeral has two values:

Know why the real and complex numbers are each a field, and that particular rings are not fields (e.g., integers, polynomial rings, matrix rings)

Mathematics Pacing. Instruction: 9/7/17 10/31/17 Assessment: 11/1/17 11/8/17. # STUDENT LEARNING OBJECTIVES NJSLS Resources

Complex Numbers: Definition: A complex number is a number of the form: z = a + bi where a, b are real numbers and i is a symbol with the property: i

THE TEACHER UNDERSTANDS THE REAL NUMBER SYSTEM AND ITS STRUCTURE, OPERATIONS, ALGORITHMS, AND REPRESENTATIONS

bc7f2306 Page 1 Name:

Pre-Algebra Unit 2. Rational & Irrational Numbers. Name

Digital Systems Overview. Unit 1 Numbering Systems. Why Digital Systems? Levels of Design Abstraction. Dissecting Decimal Numbers

Long division for integers

ENGIN 112 Intro to Electrical and Computer Engineering

CSE 241 Digital Systems Spring 2013

Carnegie Learning Middle School Math Series: Grade 8 Indiana Standards Worktext Correlations

ALGEBRA+NUMBER THEORY +COMBINATORICS

Discrete Mathematics GCD, LCM, RSA Algorithm

( )( ) Algebra I / Technical Algebra. (This can be read: given n elements, choose r, 5! 5 4 3! ! ( 5 3 )! 3!(2) 2

Math From Scratch Lesson 29: Decimal Representation

Trinity Web Site Design. Today we will learn about the technology of numbering systems.

CROSSWalk. for the Co on Core State Standards

Number Theory: Representations of Integers

Dividing Polynomials: Remainder and Factor Theorems

THE TEACHER UNDERSTANDS THE REAL NUMBER SYSTEM AND ITS STRUCTURE, OPERATIONS, ALGORITHMS, AND REPRESENTATIONS

Copy Material. Grade 8 Unit 7. Introduction to Irrational Numbers Using Geometry. Eureka Math. Eureka Math

5) ) y 20 y 10 =

Unit 1. Math 116. Number Systems

Additive Numbering Systems and Numbers of Different Bases MAT 142 RSCC Scott Surgent

Chapter 1: Fundamentals of Algebra Lecture notes Math 1010

COT 3100 Applications of Discrete Structures Dr. Michael P. Frank

x 2 + 6x 18 x + 2 Name: Class: Date: 1. Find the coordinates of the local extreme of the function y = x 2 4 x.

Tools of the Trade Review

Binary addition example worked out

Downloaded from

GCSE AQA Mathematics. Numbers

Cs302 Quiz for MID TERM Exam Solved

ZEROS OF POLYNOMIAL FUNCTIONS ALL I HAVE TO KNOW ABOUT POLYNOMIAL FUNCTIONS

2.5 정수와알고리즘 (Integers and Algorithms)

REAL NUMBERS. Any positive integer a can be divided by another positive integer b in such a way that it leaves a remainder r that is smaller than b.

Base-b representations of integers. (b 진법표현 ) Algorithms for computer arithmetic: Euclidean algorithm for finding GCD s.

Order of Operations. Real numbers

CIS102 Mathematics for Computing Volume 1

1 Numbers. exponential functions, such as x 7! a x ; where a; x 2 R; trigonometric functions, such as x 7! sin x; where x 2 R; ffiffi x ; where x 0:

Numbers and their divisors

THE TEACHER UNDERSTANDS THE REAL NUMBER SYSTEM AND ITS STRUCTURE, OPERATIONS, ALGORITHMS, AND REPRESENTATIONS

ALGEBRA. COPYRIGHT 1996 Mark Twain Media, Inc. ISBN Printing No EB

Identify the specified numbers by circling. 1) The integers in the following list: 8 16, 8, -10, 0, 9, - 9

Natural Numbers Positive Integers. Rational Numbers

Chapter 2 (Part 3): The Fundamentals: Algorithms, the Integers & Matrices. Integers & Algorithms (2.5)

Numbers. 2.1 Integers. P(n) = n(n 4 5n 2 + 4) = n(n 2 1)(n 2 4) = (n 2)(n 1)n(n + 1)(n + 2); 120 =

THE REAL NUMBERS Chapter #4

Transcription:

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) Numbers NCCA-2011/12 1 / 10

Numbers Natural Numbers: The natural numbers 0, 1, 2, 3, 4,. are used for counting, ordering and labelling. We often use natural numbers to subscript a quantity to distinguish one element from another, e.g. x1, x2, x3, x4, etc. Dr Hammadi Nait-Charif (BU, UK) Numbers NCCA-2011/12 2 / 10

Numbers Natural Numbers: The natural numbers 0, 1, 2, 3, 4,. are used for counting, ordering and labelling. We often use natural numbers to subscript a quantity to distinguish one element from another, e.g. x1, x2, x3, x4, etc. Integers:Integers embrace negative numbers.. 2,10, 1, 2, 3,.. Dr Hammadi Nait-Charif (BU, UK) Numbers NCCA-2011/12 2 / 10

Numbers Natural Numbers: The natural numbers 0, 1, 2, 3, 4,. are used for counting, ordering and labelling. We often use natural numbers to subscript a quantity to distinguish one element from another, e.g. x1, x2, x3, x4, etc. Integers:Integers embrace negative numbers.. 2,10, 1, 2, 3,.. Rational Numbers:Rational or fractional numbers are numbers that can be represented as a fraction: For example 0.25 = 1 12 16 = 4 = 15 = 15 4 4 1 = 30 2 Some rational numbers can be stored accurately inside a computer, whilst many others can only be stored approximately. For example, 4/3 = 1.3333... produces an infinite sequence of threes and has to be truncated when stored as a binary number. Dr Hammadi Nait-Charif (BU, UK) Numbers NCCA-2011/12 2 / 10

Irrational & Real Numbers Irrational Numbers: Irrational numbers cannot be represented as fractions. Examples being π = 3.1415926... and e = 2.71828182... Such numbers never terminate and are always subject to a small error when stored within a computer. Dr Hammadi Nait-Charif (BU, UK) Numbers NCCA-2011/12 3 / 10

Irrational & Real Numbers Irrational Numbers: Irrational numbers cannot be represented as fractions. Examples being π = 3.1415926... and e = 2.71828182... Such numbers never terminate and are always subject to a small error when stored within a computer. Real Numbers:Real numbers embrace irrational and rational numbers. Dr Hammadi Nait-Charif (BU, UK) Numbers NCCA-2011/12 3 / 10

Repeating decimals Is 1.212121... an rational number or irrational? Dr Hammadi Nait-Charif (BU, UK) Numbers NCCA-2011/12 4 / 10

Repeating decimals Is 1.212121... an rational number or irrational? If x = 1.2121212121.. 100x = 121.2121212121.. 1x = 1.2121212121.. Then 99x = 120 (1) Dr Hammadi Nait-Charif (BU, UK) Numbers NCCA-2011/12 4 / 10

Repeating decimals Is 1.212121... an rational number or irrational? If x = 1.2121212121.. 100x = 121.2121212121.. 1x = 1.2121212121.. Then 99x = 120 (1) Therefore x = 120/99 = 1.2121212121... is rational. Dr Hammadi Nait-Charif (BU, UK) Numbers NCCA-2011/12 4 / 10

Number Systems In general, we can define any positive integer as 359 = 3 10 2 + 5 10 1 + 9 10 0 Where 10 is the base of our decimal system. Dr Hammadi Nait-Charif (BU, UK) Numbers NCCA-2011/12 5 / 10

Number Systems In general, we can define any positive integer as 359 = 3 10 2 + 5 10 1 + 9 10 0 Where 10 is the base of our decimal system. In general, we can define any positive integer as abcd = a 10 3 + b 10 2 + c 10 1 + d 10 0 where a, b, c, d are all 9 Dr Hammadi Nait-Charif (BU, UK) Numbers NCCA-2011/12 5 / 10

Number Systems In general, we can define any positive integer as 359 = 3 10 2 + 5 10 1 + 9 10 0 Where 10 is the base of our decimal system. In general, we can define any positive integer as abcd = a 10 3 + b 10 2 + c 10 1 + d 10 0 where a, b, c, d are all 9 And any positive real number as abcd.efg = a 10 3 + b 10 2 + c 10 1 + d 10 0 + e 10 1 + f where a, b, c, d, e, f, g are all 9 Dr Hammadi Nait-Charif (BU, UK) Numbers NCCA-2011/12 5 / 10

Octal to Decimal Ten is used only because we have ten fingers. If we had 8 fingers we would define an octal positive integer as. here a, b, c, d are all 7 abcd = a 8 3 + b 8 2 + c 8 1 + d 8 0 Dr Hammadi Nait-Charif (BU, UK) Numbers NCCA-2011/12 6 / 10

Octal to Decimal Ten is used only because we have ten fingers. If we had 8 fingers we would define an octal positive integer as. here a, b, c, d are all 7 table: abcd = a 8 3 + b 8 2 + c 8 1 + d 8 0 0 1 2 3 4 5 6 7 10 11 12 13 14 15 16 17 20 21 22 23 24 25 26 27 Dr Hammadi Nait-Charif (BU, UK) Numbers NCCA-2011/12 6 / 10

Octal to Decimal Ten is used only because we have ten fingers. If we had 8 fingers we would define an octal positive integer as. here a, b, c, d are all 7 table: abcd = a 8 3 + b 8 2 + c 8 1 + d 8 0 0 1 2 3 4 5 6 7 10 11 12 13 14 15 16 17 20 21 22 23 24 25 26 27 10 8 = 8 10 12 8 = 10 10 20 8 = 16 10 Dr Hammadi Nait-Charif (BU, UK) Numbers NCCA-2011/12 6 / 10

Binary Numbers Binary numbers have a base of 2 Dr Hammadi Nait-Charif (BU, UK) Numbers NCCA-2011/12 7 / 10

Binary Numbers Binary numbers have a base of 2 For a positive binary integer abcd 2 = a 2 3 + b 2 2 + c 2 1 + d 2 0 here a, b, c, d are all 1 Dr Hammadi Nait-Charif (BU, UK) Numbers NCCA-2011/12 7 / 10

Binary Numbers Binary numbers have a base of 2 For a positive binary integer abcd 2 = a 2 3 + b 2 2 + c 2 1 + d 2 0 here a, b, c, d are all 1 e.g. 11010 2 x = 1 2 4 + 1 2 3 + 0 2 2 + 1 2 1 + 0 2 0 = 1 16 + 1 8 + 0 4 + 1 2 + 0 1 = 26 10 (2) Dr Hammadi Nait-Charif (BU, UK) Numbers NCCA-2011/12 7 / 10

Decimal to Binary Conversion To convert 20 into binary we do what s called successive divisions Dr Hammadi Nait-Charif (BU, UK) Numbers NCCA-2011/12 8 / 10

Decimal to Binary Conversion To convert 20 into binary we do what s called successive divisions successive divisions: 20 = 10 Remainder 0 2 10 2 = 5 Remainder 0 Dr Hammadi Nait-Charif (BU, UK) Numbers NCCA-2011/12 8 / 10

Decimal to Binary Conversion To convert 20 into binary we do what s called successive divisions successive divisions: 20 = 10 Remainder 0 2 10 2 = 5 Remainder 0 5 2 = 2 Remainder 1 Dr Hammadi Nait-Charif (BU, UK) Numbers NCCA-2011/12 8 / 10

Decimal to Binary Conversion To convert 20 into binary we do what s called successive divisions successive divisions: 20 = 10 Remainder 0 2 10 2 = 5 Remainder 0 5 = 2 Remainder 1 2 2 = 1 Remainder 0 Dr Hammadi Nait-Charif (BU, UK) Numbers NCCA-2011/12 8 / 10

Decimal to Binary Conversion To convert 20 into binary we do what s called successive divisions successive divisions: 20 = 10 Remainder 0 2 10 2 = 5 Remainder 0 5 = 2 Remainder 1 2 2 = 1 Remainder 0 1 2 = 0 Remainder 1 Dr Hammadi Nait-Charif (BU, UK) Numbers NCCA-2011/12 8 / 10

Decimal to Binary Conversion To convert 20 into binary we do what s called successive divisions successive divisions: 20 = 10 Remainder 0 2 10 2 = 5 Remainder 0 5 = 2 Remainder 1 2 2 = 1 Remainder 0 1 2 = 0 Remainder 1 10100 2 = 20 10 Dr Hammadi Nait-Charif (BU, UK) Numbers NCCA-2011/12 8 / 10

Other Number Systems Any base can be used to represent positional numbers abcd x = a x 3 + b x 2 + c x 1 + d x 0 Dr Hammadi Nait-Charif (BU, UK) Numbers NCCA-2011/12 9 / 10

Other Number Systems Any base can be used to represent positional numbers abcd x = a x 3 + b x 2 + c x 1 + d x 0 3021 4 = 3 4 3 + 0 4 2 + 2 4 1 + 1 4 0 = 201 10 Dr Hammadi Nait-Charif (BU, UK) Numbers NCCA-2011/12 9 / 10

Other Number Systems Any base can be used to represent positional numbers abcd x = a x 3 + b x 2 + c x 1 + d x 0 3021 4 = 3 4 3 + 0 4 2 + 2 4 1 + 1 4 0 = 201 10 516 7 = 5 7 2 + 10 7 1 + 6 4 0 = 258 10 Dr Hammadi Nait-Charif (BU, UK) Numbers NCCA-2011/12 9 / 10

Other Number Systems Any base can be used to represent positional numbers abcd x = a x 3 + b x 2 + c x 1 + d x 0 3021 4 = 3 4 3 + 0 4 2 + 2 4 1 + 1 4 0 = 201 10 516 7 = 5 7 2 + 10 7 1 + 6 4 0 = 258 10 12021 3 = 1 3 4 + 2 3 3 + 0 3 2 + 2 3 1 + 1 3 0 = 142 10 Dr Hammadi Nait-Charif (BU, UK) Numbers NCCA-2011/12 9 / 10

Hexadecimal Numbers (base 16) Hexadecimal positive Integer can be represented abcd 16 = a 16 3 + b 16 2 + c 16 1 + d 16 0 where a, b, c, d are all 16 Dr Hammadi Nait-Charif (BU, UK) Numbers NCCA-2011/12 10 / 10

Hexadecimal Numbers (base 16) Hexadecimal positive Integer can be represented abcd 16 = a 16 3 + b 16 2 + c 16 1 + d 16 0 where a, b, c, d are all 16 but this means we require some extra symbols such as 0123456789ABCDEF Dr Hammadi Nait-Charif (BU, UK) Numbers NCCA-2011/12 10 / 10

Hexadecimal Numbers (base 16) Hexadecimal positive Integer can be represented abcd 16 = a 16 3 + b 16 2 + c 16 1 + d 16 0 where a, b, c, d are all 16 but this means we require some extra symbols such as 0123456789ABCDEF 2E6 16 = 2 16 2 + E 16 1 + 6 16 0 = 2 16 2 + 14 16 1 + 6 16 0 = 742 1 0 Dr Hammadi Nait-Charif (BU, UK) Numbers NCCA-2011/12 10 / 10