2012 pearson education, inc. slide 4-4-1 chapter 4 numerationsystems

14
2012 Pearson Education, Inc. Slide 4-4-1 Chapter 4 Chapter 4 Numeration Numeration Systems Systems

Upload: gerard-shelton

Post on 20-Jan-2018

219 views

Category:

Documents


0 download

DESCRIPTION

 2012 Pearson Education, Inc. Slide Section 4-4 Conversion Between Number Bases

TRANSCRIPT

Page 1: 2012 Pearson Education, Inc. Slide 4-4-1 Chapter 4 NumerationSystems

2012 Pearson Education, Inc. Slide 4-4-1

Chapter 4Chapter 4NumerationNumerationSystemsSystems

Page 2: 2012 Pearson Education, Inc. Slide 4-4-1 Chapter 4 NumerationSystems

2012 Pearson Education, Inc. Slide 4-4-2

Chapter 4:Chapter 4: Numeration SystemsNumeration Systems

4.1 Historical Numeration Systems 4.2 More Historical Numeration Systems4.3 Arithmetic in the Hindu-Arabic System 4.4 Conversion Between Number Bases

Page 3: 2012 Pearson Education, Inc. Slide 4-4-1 Chapter 4 NumerationSystems

2012 Pearson Education, Inc. Slide 4-4-3

Section 4-4Section 4-4Conversion Between Number Bases

Page 4: 2012 Pearson Education, Inc. Slide 4-4-1 Chapter 4 NumerationSystems

2012 Pearson Education, Inc. Slide 4-4-4

• General Base Conversions• Computer Mathematics

Conversion Between Number BasesConversion Between Number Bases

Page 5: 2012 Pearson Education, Inc. Slide 4-4-1 Chapter 4 NumerationSystems

2012 Pearson Education, Inc. Slide 4-4-5

We consider bases other than ten. Bases other than ten will have a spelled-out subscript as in the numeral 54eight. When a number appears without a subscript assume it is base ten. Note that 54eight is read “five four base eight.” Do not read it as “fifty-four.”

General Base ConversionsGeneral Base Conversions

Page 6: 2012 Pearson Education, Inc. Slide 4-4-1 Chapter 4 NumerationSystems

2012 Pearson Education, Inc. Slide 4-4-6

Fourth Power

Third Power

Second Power

First Power

Zero Power

Base two 16 8 4 2 1

Base five 625 125 25 5 1

Base seven 2401 343 49 7 1

Base eight 4096 512 64 8 1

Base sixteen 65,536 4096 256 16 1

Powers of Alternative BasesPowers of Alternative Bases

Page 7: 2012 Pearson Education, Inc. Slide 4-4-1 Chapter 4 NumerationSystems

2012 Pearson Education, Inc. Slide 4-4-7

Convert 2134five to decimal form.

Solution2134five 2 125 1 25 3 5 4

250 25 15 4294.

Example: Converting BasesExample: Converting Bases

Page 8: 2012 Pearson Education, Inc. Slide 4-4-1 Chapter 4 NumerationSystems

2012 Pearson Education, Inc. Slide 4-4-8

To convert from another base to decimal form: Start with the first digit on the left and multiply by the base. Then add the next digit, multiply again by the base, and so on. The last step is to add the last digit on the right. Do not multiply it by the base.

Calculator Shortcut for Base Calculator Shortcut for Base ConversionConversion

Page 9: 2012 Pearson Education, Inc. Slide 4-4-1 Chapter 4 NumerationSystems

2012 Pearson Education, Inc. Slide 4-4-9

Use the calculator shortcut to convert 432134five to decimal form.

Solution

4 5 3 5 2 5 1 5 3 5 4

14669

432134five

Example: Calendar ShortcutExample: Calendar Shortcut

Page 10: 2012 Pearson Education, Inc. Slide 4-4-1 Chapter 4 NumerationSystems

2012 Pearson Education, Inc. Slide 4-4-10

Convert 7508 to base seven.

7508 1072 4 153 1 21 6 3 0 0 3

SolutionDivide by 7, then divide the resulting quotient by 7, until a quotient of 0 results.From the remainders (bottom to top) we get the answer: 7508 = 30614seven

Remainder

Example: Converting BasesExample: Converting Bases

Page 11: 2012 Pearson Education, Inc. Slide 4-4-1 Chapter 4 NumerationSystems

2012 Pearson Education, Inc. Slide 4-4-11

Many people feel the most comfortable handling conversions between arbitrary bases (where neither is ten) by going from the given base to base ten and then to the desired base.

Converting Between Two Bases Other Converting Between Two Bases Other Than TenThan Ten

Page 12: 2012 Pearson Education, Inc. Slide 4-4-1 Chapter 4 NumerationSystems

2012 Pearson Education, Inc. Slide 4-4-12

There are three alternative base systems that are most useful in computer applications. These are binary (base two), octal (base eight), and hexadecimal (base sixteen) systems.

Computers and handheld calculators use the binary system.

Computer MathematicsComputer Mathematics

Page 13: 2012 Pearson Education, Inc. Slide 4-4-1 Chapter 4 NumerationSystems

2012 Pearson Education, Inc. Slide 4-4-13

Convert 111001two to decimal form.

1 2 1 2 1 2 0 2 0 2 1

57

Solution111001two

Example: Convert Binary to DecimalExample: Convert Binary to Decimal

Page 14: 2012 Pearson Education, Inc. Slide 4-4-1 Chapter 4 NumerationSystems

2012 Pearson Education, Inc. Slide 4-4-14

Convert 8B4Fsixteen to binary form.

SolutionEach hexadecimal digit yields a 4-digit binary equivalent.

8B4Fsixteen = 1000101101001111two.

8 B 4 Fsixteen

1000 1011 0100 1111two

Combine to get

Example: Convert Hexadecimal to Example: Convert Hexadecimal to BinaryBinary