What do we now know about number systems?

Slides:



Advertisements
Similar presentations
DATA REPRESENTATION Y. Colette Lemard February
Advertisements

Information Processing Session 5B Binary Arithmetic Slide
Computer Systems Nat 4/5 Computing Science Lesson 1: Binary.
Binary “There are 10 types of people in the world… those that understand binary and those that don’t.”
Data Representation Number Systems.
Lecture for Week Spring.  Numbers can be represented in many ways. We are familiar with the decimal system since it is most widely used in everyday.
Positional Number Systems
Maths Notes Number 5. Decimals
Numeral Systems Subjects: Numeral System Positional systems Decimal
Chapter 7 Section 7.1 Place Systems.
The student will identify and extend geometric and arithmetic sequences.
Binary, Hexadecimal, Decimal, and How They Relate.
Multiplying Decimals Type your name and send: Next slide.
Addition & Subtraction of Decimals. Add and Subtract like Columns = _______ tens ones RULE: Only add and subtract LIKE.
Computer Systems Nat 4/5 Computing Science Lesson 1: Binary.
Converting Fractions to Decimals. In order to understand how to convert fractions to decimals, you must first know: 1)What a fraction is. 2)What a decimal.
Unit 1 MM 150: Number Theory and the Real Number System Prof. Carolyn Dupee July 3, 2012.
Binary Numbers Press any key to begin.. In order to understand the binary numbering system lets first look at our decimal system. The decimal numbering.
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
Lesson 1-5 AP Computer Science Principles
MULTIPLICATION 5 Multiplicand X 3 Multiplier 15 Product LET’S LEARN
Introduction To Number Systems
Number and Operations - Fractions Operations and Algebraic Thinking
Lesson 1-4 AP Computer Science Principles
Consider this number: , Ones (7 ones) Tens (no tens)
AP CSP: Binary Number System
16 Basic Math Skills.
2's Complement Arithmetic
Calculation Progressions at St Francis CE Primary
Scientific Notation.
Digital Logic & Design Dr. Waseem Ikram Lecture 02.
USING THE STANDARD ALGORITHM
6.17 The student will identify and extend geometric and arithmetic sequences.
UNIT 1 – LESSON 5 BINARY NUMBERS.
Objectives Chapter 3 Read and write decimal numbers Compare decimals
Basic Math Skills.
Mr F’s Maths Notes Number 1. Types of Number.
Adding and subtracting decimals
Tools of Web Development 1: Module A: Numbering Systems
Number System conversions
Subnetting IP4 ICND/CCNA Prep.
CLAST Arithmetic by Joyce
Significant Figures General Chemistry.
Topic 3: Data Binary Arithmetic.
Tenths are an Important Fraction
Number Column Addition and Subtraction for Decimals
Mr Barton’s Maths Notes
Day 4- Number Systems & Binary Numbers
Day 4- Number Systems & Binary Numbers
Fundamentals of Data Representation
2’s Complement Arithmetic
Digital Logic & Design Lecture 02.
Binary Numbers Press any key to begin..
How many different ways can you represent the quantity “7”
Computers in the real world Objectives
Sets of Numbers Click “Slide Show”. Then click “From Beginning”.
Standard Algorithm for Multiplication
Making a Little Book on the Computer
Patterns TAKS Name__________________________ Class _____________ 5 pts each 100 max_ Tables of value problems are really just patterns for the correct.
Starter Using the fingers on only one hand, what is the highest number you can count to? Rules: You must start at 1 You must count sequentially (i.e.
Methods we use in Mathematics
Ms. Davis’ Math Notes Number 1. Types of Number
Scientific Notation & Significant Figures
Mr Barton’s Maths Notes
What role does place value have in whole number operations?
Chapter 5 Decimals © 2010 Pearson Education, Inc. All rights reserved.
Chapter 3 - Binary Numbering System
Scientific notation: positive exponent
Two’s Complement & Binary Arithmetic
Presentation transcript:

What do we now know about number systems? Number systems are predicable (we can figure out which symbol [number] comes next), they have an order/arrangement (permutation), and represent real quantities.

Let’s review from yesterday We created a new number system using 3 unique ‘symbols’ [Circle, Square, Triangle] How could we use these three shapes to create a predictive system [be able to know what comes next using a pattern or rule]? We would need some sort of “order” in our system – decimal, we know it begins with 0, then 1, then 2…all the way to 9. We know that 3 never comes after 8 or some other number and we can predict which number (symbol) will come next.

Step 1 The slide states “1 place”. Think to how the decimal system works. We have a ones place, a tens place, a hundreds place, et cetera. In this example, all ‘permutations’ or arrangements of the shapes are shown.

Step 2 Now we add a new level. This is akin to adding the 10’s place in our decimal system. However, in this system, there are only 3 shapes. We take the order: Circle, Triangle, Square and repeat that pattern adding a “tens” place in front. In this example, this would be similar to showing 10, 11, 12 then 20, 21, 22, then 30, 31, 32 – remember this system only uses 3 shapes, so ’32’ would be as high as it would go without needing another place value ~ a ‘hundreds’ place. Just to be clear, I am not saying that these shapes directly mean “10, 11, 12” “20, 21, 22” and “30, 31, 32” I just wanted to show how it works using the place value.

Step 3

Step 4

Binary Numbers Place has it’s value

Binary number system Proper number system Uses only two ‘shapes’ or ‘symbols’ Predictive set of rules for using 1s and 0s to represent values Allows for counting and arithmetic operations In Computer Science, binary numbers are represented as 0 and 1. These are the most simple (simple, because there are only two symbols) number system and the most efficient way for us to transmit information using computers. This is why we use binary in programming.

What did the Rich computer scientist say when she walked into the pun shop? Warning: bad joke on the next slide

I’m sorry, but I did warn you.  “I’m binary thing!”

Odometer Think of a vehicle’s odometer… How does it function? (yes, it records mileage, but think of the mechanics… what does a rolling odometer look like?)

Patterns Any binary number with a single 1 is a power of 2 Just like any in our number system, any number ending in 0 (10, 20, 30, 40… etc.) is a power of 10 In this slide, we see that in order to represent the number 1, we only need one bit (binary digit). In order to represent the number 2, we need two digits, or bits. In order to represent the number 4, we will need 3 bits (binary digits) and in order to represent the number 8, we will need 4 digits, or places. In decimal with those same amount of digits – we can represent up to 1000.

The Decimal system In the “One’s place”, there are 10 (decimal – base 10) possibilities: 10 x 1 = 10 In the “Ten’s place”, there are 100 possibilities: 10 x 10 = 100 In the “Hundred’s place”, there are 1000 possibilities: 100 x 100 = 1,000 Etc.

This may seem basic. It is This may seem basic. It is. But it is important to remember what each number actually means. For decimal, it is easy, the number 4,017 represents 4,017 ones as depicted above. This won’t be the case with binary (base 2), or other base systems as what is represented means something else. For example (we will see this in later slides): 100 in binary does not mean one hundred ones, it actually represents the number 4 (decimal). Essentially, we are finding out how many ‘ones’ are in this number by determining how many ‘ones’ are in each place value

Circle Triangle Square ___ in the 3’s place ___ in the 9’s place ___ in the 27’s place

With Binary… ___ in the 2’s place ___ in the 4’s place

Constructing a binary number means figuring out which powers of 2 add up to the number you want 128 64 32 16 8 4 2 1 0 0 1 0 1 0 0 1 In this slide, we can see that the binary 00101001 is 41. With a 1 in the 32 place, and a 1 in the 8’s place and a 1 in the 1’s place, we add that all up and get 41. 11111111 would mean 128 +64+32+16+8+4+2+1 = 255 + 1 = 41 + 8 32

Let’s make a “Flippy do” Cut along the dotted lines Fold the bottom row up. On the top row, write all the powers of 2, from right to left 27 26 25 24 23 22 21 20 On the bottom row, write a 0 in every cell. Flip the bottom row up and write a 1 in every cell. Calculate the powers of 2 in the 2nd row

We now have a decimal to binary converter! The largest value our “flippy do” will create is 255 in decimal. With more place values, we could create a “decimal / binary converter” with a larger value possibility.

There are 10 types of people in the world, Those who understand binary and those who don’t. Why is this a joke? Because it appears to read “There are ten…” when it is really stating there are 2 (one, zero = 2 in decimal) types… If you “understood binary” then the joke would make sense to you.