Number Systems - josephpcohen.com · Number Systems. Review PEMDAS ... But what is a number? 1 + 1...

30
Number Systems

Transcript of Number Systems - josephpcohen.com · Number Systems. Review PEMDAS ... But what is a number? 1 + 1...

Page 1: Number Systems - josephpcohen.com · Number Systems. Review PEMDAS ... But what is a number? 1 + 1 = 2. 1 + 1 = 2. 1 + 1 = 10. 1 + 1 = 10. Numbers Numbers are written using positional

Number Systems

Page 2: Number Systems - josephpcohen.com · Number Systems. Review PEMDAS ... But what is a number? 1 + 1 = 2. 1 + 1 = 2. 1 + 1 = 10. 1 + 1 = 10. Numbers Numbers are written using positional

Review

PEMDAS

●Parentheses●Exponents (Square root, Squares etc)●Multiplication●Division●Addition●Subtraction

Page 3: Number Systems - josephpcohen.com · Number Systems. Review PEMDAS ... But what is a number? 1 + 1 = 2. 1 + 1 = 2. 1 + 1 = 10. 1 + 1 = 10. Numbers Numbers are written using positional

Review

(15 ÷ 3 + 4) - (3² - 7 × 2)

Option 1: (15 ÷ 7) – (2 × 2)

Option 2: (5 + 4) – (9 – 14)

Option 3: (15 ÷ 7) – (6 – 14)

Option 4: (5 + 4) – (2 × 2)

Page 4: Number Systems - josephpcohen.com · Number Systems. Review PEMDAS ... But what is a number? 1 + 1 = 2. 1 + 1 = 2. 1 + 1 = 10. 1 + 1 = 10. Numbers Numbers are written using positional

Review

111 x 111 111 x 111 111 111x 111xx 12321

Page 5: Number Systems - josephpcohen.com · Number Systems. Review PEMDAS ... But what is a number? 1 + 1 = 2. 1 + 1 = 2. 1 + 1 = 10. 1 + 1 = 10. Numbers Numbers are written using positional
Page 6: Number Systems - josephpcohen.com · Number Systems. Review PEMDAS ... But what is a number? 1 + 1 = 2. 1 + 1 = 2. 1 + 1 = 10. 1 + 1 = 10. Numbers Numbers are written using positional

Processing Data

Five sensesConverted to electrical signals in the brain

Page 7: Number Systems - josephpcohen.com · Number Systems. Review PEMDAS ... But what is a number? 1 + 1 = 2. 1 + 1 = 2. 1 + 1 = 10. 1 + 1 = 10. Numbers Numbers are written using positional

How do machines process data

Machines interpret electrical signals as

1s and 0s – binary digits or bits

Data in computers are represented by bits

+5/-5 Volts

1

0 Off

On

Page 8: Number Systems - josephpcohen.com · Number Systems. Review PEMDAS ... But what is a number? 1 + 1 = 2. 1 + 1 = 2. 1 + 1 = 10. 1 + 1 = 10. Numbers Numbers are written using positional
Page 9: Number Systems - josephpcohen.com · Number Systems. Review PEMDAS ... But what is a number? 1 + 1 = 2. 1 + 1 = 2. 1 + 1 = 10. 1 + 1 = 10. Numbers Numbers are written using positional

Numbers

Natural Numbers

Negative Numbers

Rational NumbersIrrational Numbers

Integers

But what is a number?

Page 10: Number Systems - josephpcohen.com · Number Systems. Review PEMDAS ... But what is a number? 1 + 1 = 2. 1 + 1 = 2. 1 + 1 = 10. 1 + 1 = 10. Numbers Numbers are written using positional

1 + 1 = 2

Page 11: Number Systems - josephpcohen.com · Number Systems. Review PEMDAS ... But what is a number? 1 + 1 = 2. 1 + 1 = 2. 1 + 1 = 10. 1 + 1 = 10. Numbers Numbers are written using positional

1 + 1 = 2

Page 12: Number Systems - josephpcohen.com · Number Systems. Review PEMDAS ... But what is a number? 1 + 1 = 2. 1 + 1 = 2. 1 + 1 = 10. 1 + 1 = 10. Numbers Numbers are written using positional

1 + 1 = 10

Page 13: Number Systems - josephpcohen.com · Number Systems. Review PEMDAS ... But what is a number? 1 + 1 = 2. 1 + 1 = 2. 1 + 1 = 10. 1 + 1 = 10. Numbers Numbers are written using positional

1 + 1 = 10

Page 14: Number Systems - josephpcohen.com · Number Systems. Review PEMDAS ... But what is a number? 1 + 1 = 2. 1 + 1 = 2. 1 + 1 = 10. 1 + 1 = 10. Numbers Numbers are written using positional
Page 15: Number Systems - josephpcohen.com · Number Systems. Review PEMDAS ... But what is a number? 1 + 1 = 2. 1 + 1 = 2. 1 + 1 = 10. 1 + 1 = 10. Numbers Numbers are written using positional

Numbers

Numbers are written using positional notation

Arranging and encoding numbers in succession

Every number system has a base

Page 16: Number Systems - josephpcohen.com · Number Systems. Review PEMDAS ... But what is a number? 1 + 1 = 2. 1 + 1 = 2. 1 + 1 = 10. 1 + 1 = 10. Numbers Numbers are written using positional

Numbers

Base dictates the value of position

Page 17: Number Systems - josephpcohen.com · Number Systems. Review PEMDAS ... But what is a number? 1 + 1 = 2. 1 + 1 = 2. 1 + 1 = 10. 1 + 1 = 10. Numbers Numbers are written using positional

Numbers

11

Page 18: Number Systems - josephpcohen.com · Number Systems. Review PEMDAS ... But what is a number? 1 + 1 = 2. 1 + 1 = 2. 1 + 1 = 10. 1 + 1 = 10. Numbers Numbers are written using positional

Decimal number system943

10

104 103 102 101 100

9 4 3

102 × 9 + 101 × 4 + 100 × 3= 100 × 9 + 10 × 4 + 1 × 3

= 900 + 40 + 3 = 94310

Page 19: Number Systems - josephpcohen.com · Number Systems. Review PEMDAS ... But what is a number? 1 + 1 = 2. 1 + 1 = 2. 1 + 1 = 10. 1 + 1 = 10. Numbers Numbers are written using positional

Binary number system

1112

24 23 22 21 20

1 1 1

22 × 1 + 21 × 1 + 20 × 1= 4 × 1 + 2 × 1 + 1 × 1

= 4 + 2 + 1 = 710

Converted a binary number

to a decimal number

Page 20: Number Systems - josephpcohen.com · Number Systems. Review PEMDAS ... But what is a number? 1 + 1 = 2. 1 + 1 = 2. 1 + 1 = 10. 1 + 1 = 10. Numbers Numbers are written using positional

We can have other number systems!

Octal – Base 8

Hexadecimal – Base 16

Page 21: Number Systems - josephpcohen.com · Number Systems. Review PEMDAS ... But what is a number? 1 + 1 = 2. 1 + 1 = 2. 1 + 1 = 10. 1 + 1 = 10. Numbers Numbers are written using positional

Convert from Binary to Decimal1011

2

24 23 22 21 20

8 4 2 1 1 0 1 1

8 + 0 + 2 + 1 = 1110

Page 22: Number Systems - josephpcohen.com · Number Systems. Review PEMDAS ... But what is a number? 1 + 1 = 2. 1 + 1 = 2. 1 + 1 = 10. 1 + 1 = 10. Numbers Numbers are written using positional

Convert from Binary to Decimal

111100012

128 + 64 + 32 + 16 + 0 + 0 + 0 + 1 = 24110

27 26 25 24 23 22 21 20

128 64 32 16 8 4 2 1

1 1 1 1 0 0 0 1

Page 23: Number Systems - josephpcohen.com · Number Systems. Review PEMDAS ... But what is a number? 1 + 1 = 2. 1 + 1 = 2. 1 + 1 = 10. 1 + 1 = 10. Numbers Numbers are written using positional

Your turn

Convert 1010112 to a decimal number

Please show all steps!

To aid you:

26 25 24 23 22 21 20

64 32 16 8 4 2 1

Page 24: Number Systems - josephpcohen.com · Number Systems. Review PEMDAS ... But what is a number? 1 + 1 = 2. 1 + 1 = 2. 1 + 1 = 10. 1 + 1 = 10. Numbers Numbers are written using positional

Convert from Decimal to Binary

9310

64 × 1 + 16 × 1 + 8 × 1 + 4 × 1 + 1 × 1 = 93

26 25 24 23 22 21 20

64 32 16 8 4 2 1

1 0 1 1 1 0 1

Verify

Page 25: Number Systems - josephpcohen.com · Number Systems. Review PEMDAS ... But what is a number? 1 + 1 = 2. 1 + 1 = 2. 1 + 1 = 10. 1 + 1 = 10. Numbers Numbers are written using positional

Your turn

Convert 5610

to a binary number

Please show all steps!

To aid you:

26 25 24 23 22 21 20

64 32 16 8 4 2 1

Page 26: Number Systems - josephpcohen.com · Number Systems. Review PEMDAS ... But what is a number? 1 + 1 = 2. 1 + 1 = 2. 1 + 1 = 10. 1 + 1 = 10. Numbers Numbers are written using positional

Binary Addition

●Informal rules..

1 + 0 = 12

0 + 1 = 12

1 + 1 = 102

1 + 1 + 1 = 112

26 25 24 23 22 21 20

64 32 16 8 4 2 1

Page 27: Number Systems - josephpcohen.com · Number Systems. Review PEMDAS ... But what is a number? 1 + 1 = 2. 1 + 1 = 2. 1 + 1 = 10. 1 + 1 = 10. Numbers Numbers are written using positional

Binary Addition

1 0 11 1 0

+ 1 0 1 1 1

1 0 1 1 0 1

101 11 1

1 1 1

+ 1 1 1

1 0 1 0 1

26 25 24 23 22 21 20

64 32 16 8 4 2 1

Page 28: Number Systems - josephpcohen.com · Number Systems. Review PEMDAS ... But what is a number? 1 + 1 = 2. 1 + 1 = 2. 1 + 1 = 10. 1 + 1 = 10. Numbers Numbers are written using positional

Your turn

Add 1012+ 111

2 + 011

2

Please show all steps!

To aid you:

26 25 24 23 22 21 20

64 32 16 8 4 2 1

Page 29: Number Systems - josephpcohen.com · Number Systems. Review PEMDAS ... But what is a number? 1 + 1 = 2. 1 + 1 = 2. 1 + 1 = 10. 1 + 1 = 10. Numbers Numbers are written using positional

Binary Multiplication

1 1 x 1 1 10 1 1 1 1 x 1 0 0 1

Page 30: Number Systems - josephpcohen.com · Number Systems. Review PEMDAS ... But what is a number? 1 + 1 = 2. 1 + 1 = 2. 1 + 1 = 10. 1 + 1 = 10. Numbers Numbers are written using positional

Your turn

Multiply 1112 x 111

2

Please show all steps!

To aid you:

26 25 24 23 22 21 20

64 32 16 8 4 2 1