CALCULATOR AND COMPUTER ARITHMETIC


 Pearl Knight
 1 years ago
 Views:
Transcription
1 MathScope Handbook  Calc/Comp Arithmetic Page 1 of 7 Click here to return to the index 1 Introduction CALCULATOR AND COMPUTER ARITHMETIC Most of the computational work you will do as an Engineering Student will be performed either on a calculator or by means of a computer program. This section is intended to illustrate the ways in which calculators and computers store numbers and perform arithmetic operations. It is not intended as a guide to the use of such devices. Decimal Systems  Base 10 In everyday life information are represented in the decimal system 0,1,,,4,5,6,7,8,9 and the base 10 using the digits e.g = (x10 ) + (1x10 ) + (5x10 1 ) + (6x10 0 ) + (1x101 ) + (x10  ) Notice how the position of a digit within the number indicates the power of 10 by which it is multiplied. Here is another example: = (x10 4 ) + (x10 ) + (6x10 ) + (9x10 1 ) + (6x10 0 ) + (4x101 ) + (8x10  ) + (6x10  ) Having understood this representation it is clear that we can use any positive integer as the base. As you know, when using a calculator you key in numbers in the usual decimal system and the answers are displayed in the decimal system. However, the machine will actually store the numbers using a different base. Depending on the type of machine the base will be either or 16. Binary System  Base The digits are 0, 1 E.g = (1x ) + (0x ) + (1x 1 ) + (1x 0 ) + (1x 1 ) + (0x  ) + (1x  ) The fact that only two digits are required was the attribute of the binary system, which was so useful in the development of machines for storing numbers and doing arithmetic, since switch off 0 and switch on 1 provided an obvious code. In decimal arithmetic the above number is: / + 0/4 + 1/8 =
2 MathScope Handbook  Calc/Comp Arithmetic Page of 7 4 Hexadecimal System  Base 16 Some modern machines use this system in which the digits are 0,1,,,4,5,6,7,8,9,A, B, C, D, E, F In decimal terms A=10, B=11,C=1,D=1,E=14,F=15 ( ) ( ) ( 1 ) ( 0 ) ( 1 ) ( ) 5AD 4C = A 16 + D C 16 which, as a decimal number is : 5x x56 + 1x /16 + 1/56 = As an example, the decimal number 0.15 can also be expressed as:  Binary: Hexadecimal: 14A. To check this = = = A. = x x161 = = Conversion Between Bases As the example above shows, to convert from binary or hexadecimal to decimal is a simple computation. The algorithm for performing the reverse operation is illustrated in the following example.
3 MathScope Handbook  Calc/Comp Arithmetic Page of 7 Decimal number 0.15 Conversion to binary: Integer part Divide by the new base repeatedly = 165, remainder R 1 = 0 = 8, remainder R = 1 = 41, remainder R = 0 = 0, remainder R 4 = 1 = 10, remainder R 5 = 0 = 5, remainder R 6 = 0 =, remainder R 7 = 1 = 1, remainder R 8 = 0 = 0, remainder R 9 = 1 The integer part is then R9 R8 R7 R1 Fraction Part = Multiply repeatedly by the new base until the fractional part becomes zero (It may not do in which case stop the process when enough accuracy is achieved) 0.15x = 0.5 = = I 1 +F 1 F 1 x = 0.5x = 0.5 = = I +F F x = 0.5x = 1.0 = 1+0 = I +F The fraction is then I 1, I, I = Thus
4 MathScope Handbook  Calc/Comp Arithmetic Page 4 of 7 Conversion to hexadecimal: Integer part Divide by 16 repeatedly 0/16 = 0 remainder R 1 = A 0/16 = 1 remainder R = 4 1/16 = 0 remainder R = 1 The integer part is: R R R 1 = 14A Fraction part Multiply repeatedly by 16 stopping as described above 0.15 x 16 =.0 = = I 1 + F 1 The fraction part is 0. and so = 14A. 6 Addition and Multiplication in Binary Arithmetic The basic rules are: 0+0 = 0, 1+0 = 0+1 = 1, 1+1 = 10 0x0 = 0, 1x0 = 0x1 = 0, 1x1 = 1 Addition: Multiplication: x = The rules for hexadecimal arithmetic are omitted. 4
5 MathScope Handbook  Calc/Comp Arithmetic Page 5 of 7 7 Normal Form and Floating Point Arithmetic Even though your calculator or computer will be storing numbers and operating on them in nondecimal form this is not visible to you as the user. You input data in decimal form and the machine gives you the answer in decimal form. In the following description of how computing machines store and operate on numbers we can without any loss of validity ignore the conversion process and we shall use the decimal system in all examples. A computing machine has only a finite space in which to store a number. If you compute the quantity /00 the exact answer is recurring. This is beyond the storage capacity of any machine. Your computer would actually store this as three pieces of information, which we call the normal form of the number. In this case (10  ) (The actual number of sixes stored would be machine dependent, typically equivalent to about 1 decimal digits). The normal form of a number then consists of three parts: (sign) (mantissa) (b n ) sign : mantissa : plus or minus a fraction with a fixed number of digits b : the arithmetic base ( or 16 in a machine, 10 in our examples) n : an integer, positive or negative with a maximum value which is machine dependent. The integer n is chosen so that 1 b mantissa < 1 With b=10 we have 0.1 mantissa < 1 so that in normal form is (10 ) but not (10 4 ) or (10 ) Computer arithmetic is called Floating Point Arithmetic. In essence it is as follows 5
6 MathScope Handbook  Calc/Comp Arithmetic Page 6 of 7 Addition/Subtraction: To add/subtract two numbers: Adjust the value of n (exponent) of the smaller number to be equal to the exponent of the larger number. Add/subtract the numbers. Adjust (round off) the mantissa to fit the available number of digits. Multiplication/Division: Multiply/divide the two mantissas. Combine the exponents. Adjust and round off the product mantissa. Addition (Five digit mantissa) (10 ) (101 ) = (10 ) (10 ) = (10 ) = (10 ) Multiplication (Five digit mantissa) [ (10 )] x [0.611 (101 )] = (10 1 ) = (10 1 ) As can be seen in the above examples, each of the final answers is subject to a small error due to the restriction on the number of digits in the mantissa. In some calculations the accumulated effect (accumulated rounding error) can be quite serious. Consider the simple computation The exact value is We will now perform the computation as a hypothetical calculator with a 5 digit mantissa would = 0 ( 10 4 ) = 0 ( 10 4 ) = An error of over 10% All calculators and computers have rather better than 5digit mantissa but the example nevertheless illustrates possible pitfalls. 6
7 MathScope Handbook  Calc/Comp Arithmetic Page 7 of 7 Click here to return to the main document 7
Useful Number Systems
Useful Number Systems Decimal Base = 10 Digit Set = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9} Binary Base = 2 Digit Set = {0, 1} Octal Base = 8 = 2 3 Digit Set = {0, 1, 2, 3, 4, 5, 6, 7} Hexadecimal Base = 16 = 2
More informationBinary Number System. 16. Binary Numbers. Base 10 digits: 0 1 2 3 4 5 6 7 8 9. Base 2 digits: 0 1
Binary Number System 1 Base 10 digits: 0 1 2 3 4 5 6 7 8 9 Base 2 digits: 0 1 Recall that in base 10, the digits of a number are just coefficients of powers of the base (10): 417 = 4 * 10 2 + 1 * 10 1
More informationLSN 2 Number Systems. ECT 224 Digital Computer Fundamentals. Department of Engineering Technology
LSN 2 Number Systems Department of Engineering Technology LSN 2 Decimal Number System Decimal number system has 10 digits (09) Base 10 weighting system... 10 5 10 4 10 3 10 2 10 1 10 0. 101 102 103
More informationNUMBER SYSTEMS. William Stallings
NUMBER SYSTEMS William Stallings The Decimal System... The Binary System...3 Converting between Binary and Decimal...3 Integers...4 Fractions...5 Hexadecimal Notation...6 This document available at WilliamStallings.com/StudentSupport.html
More informationComputer Science 281 Binary and Hexadecimal Review
Computer Science 281 Binary and Hexadecimal Review 1 The Binary Number System Computers store everything, both instructions and data, by using many, many transistors, each of which can be in one of two
More informationCSI 333 Lecture 1 Number Systems
CSI 333 Lecture 1 Number Systems 1 1 / 23 Basics of Number Systems Ref: Appendix C of Deitel & Deitel. Weighted Positional Notation: 192 = 2 10 0 + 9 10 1 + 1 10 2 General: Digit sequence : d n 1 d n 2...
More informationDivide: Paper & Pencil. Computer Architecture ALU Design : Division and Floating Point. Divide algorithm. DIVIDE HARDWARE Version 1
Divide: Paper & Pencil Computer Architecture ALU Design : Division and Floating Point 1001 Quotient Divisor 1000 1001010 Dividend 1000 10 101 1010 1000 10 (or Modulo result) See how big a number can be
More informationCOMP 250 Fall 2012 lecture 2 binary representations Sept. 11, 2012
Binary numbers The reason humans represent numbers using decimal (the ten digits from 0,1,... 9) is that we have ten fingers. There is no other reason than that. There is nothing special otherwise about
More informationNumber Representation
Number Representation CS10001: Programming & Data Structures Pallab Dasgupta Professor, Dept. of Computer Sc. & Engg., Indian Institute of Technology Kharagpur Topics to be Discussed How are numeric data
More informationThis Unit: Floating Point Arithmetic. CIS 371 Computer Organization and Design. Readings. Floating Point (FP) Numbers
This Unit: Floating Point Arithmetic CIS 371 Computer Organization and Design Unit 7: Floating Point App App App System software Mem CPU I/O Formats Precision and range IEEE 754 standard Operations Addition
More informationNumber Conversions Dr. Sarita Agarwal (Acharya Narendra Dev College,University of Delhi)
Conversions Dr. Sarita Agarwal (Acharya Narendra Dev College,University of Delhi) INTRODUCTION System A number system defines a set of values to represent quantity. We talk about the number of people
More information2010/9/19. Binary number system. Binary numbers. Outline. Binary to decimal
2/9/9 Binary number system Computer (electronic) systems prefer binary numbers Binary number: represent a number in base2 Binary numbers 2 3 + 7 + 5 Some terminology Bit: a binary digit ( or ) Hexadecimal
More information198:211 Computer Architecture
198:211 Computer Architecture Topics: Lecture 8 (W5) Fall 2012 Data representation 2.1 and 2.2 of the book Floating point 2.4 of the book 1 Computer Architecture What do computers do? Manipulate stored
More informationCS321. Introduction to Numerical Methods
CS3 Introduction to Numerical Methods Lecture Number Representations and Errors Professor Jun Zhang Department of Computer Science University of Kentucky Lexington, KY 405060633 August 7, 05 Number in
More informationThe string of digits 101101 in the binary number system represents the quantity
Data Representation Section 3.1 Data Types Registers contain either data or control information Control information is a bit or group of bits used to specify the sequence of command signals needed for
More informationCHAPTER 5 Roundoff errors
CHAPTER 5 Roundoff errors In the two previous chapters we have seen how numbers can be represented in the binary numeral system and how this is the basis for representing numbers in computers. Since any
More informationMeasures of Error: for exact x and approximation x Absolute error e = x x. Relative error r = (x x )/x.
ERRORS and COMPUTER ARITHMETIC Types of Error in Numerical Calculations Initial Data Errors: from experiment, modeling, computer representation; problem dependent but need to know at beginning of calculation.
More informationLecture 11: Number Systems
Lecture 11: Number Systems Numeric Data Fixed point Integers (12, 345, 20567 etc) Real fractions (23.45, 23., 0.145 etc.) Floating point such as 23. 45 e 12 Basically an exponent representation Any number
More informationSystems I: Computer Organization and Architecture
Systems I: Computer Organization and Architecture Lecture 2: Number Systems and Arithmetic Number Systems  Base The number system that we use is base : 734 = + 7 + 3 + 4 = x + 7x + 3x + 4x = x 3 + 7x
More informationTHE BINARY NUMBER SYSTEM
THE BINARY NUMBER SYSTEM Dr. Robert P. Webber, Longwood University Our civilization uses the base 10 or decimal place value system. Each digit in a number represents a power of 10. For example, 365.42
More informationBinary Division. Decimal Division. Hardware for Binary Division. Simple 16bit Divider Circuit
Decimal Division Remember 4th grade long division? 43 // quotient 12 521 // divisor dividend 480 4136 5 // remainder Shift divisor left (multiply by 10) until MSB lines up with dividend s Repeat until
More informationDigital System Design Prof. D Roychoudhry Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur
Digital System Design Prof. D Roychoudhry Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur Lecture  04 Digital Logic II May, I before starting the today s lecture
More informationTI83 Plus Graphing Calculator Keystroke Guide
TI83 Plus Graphing Calculator Keystroke Guide In your textbook you will notice that on some pages a keyshaped icon appears next to a brief description of a feature on your graphing calculator. In this
More informationRestoring division. 2. Run the algorithm Let s do 0111/0010 (7/2) unsigned. 3. Find remainder here. 4. Find quotient here.
Binary division Dividend = divisor q quotient + remainder CS/COE447: Computer Organization and Assembly Language Given dividend and divisor, we want to obtain quotient (Q) and remainder (R) Chapter 3 We
More informationPositional Numbering System
APPENDIX B Positional Numbering System A positional numbering system uses a set of symbols. The value that each symbol represents, however, depends on its face value and its place value, the value associated
More informationCOMPSCI 210. Binary Fractions. Agenda & Reading
COMPSCI 21 Binary Fractions Agenda & Reading Topics: Fractions Binary Octal Hexadecimal Binary > Octal, Hex Octal > Binary, Hex Decimal > Octal, Hex Hex > Binary, Octal Animation: BinFrac.htm Example
More informationECE 0142 Computer Organization. Lecture 3 Floating Point Representations
ECE 0142 Computer Organization Lecture 3 Floating Point Representations 1 Floatingpoint arithmetic We often incur floatingpoint programming. Floating point greatly simplifies working with large (e.g.,
More informationNumber and codes in digital systems
Number and codes in digital systems Decimal Numbers You are familiar with the decimal number system because you use them everyday. But their weighted structure is not understood. In the decimal number
More informationOct: 50 8 = 6 (r = 2) 6 8 = 0 (r = 6) Writing the remainders in reverse order we get: (50) 10 = (62) 8
ECE Department Summer LECTURE #5: Number Systems EEL : Digital Logic and Computer Systems Based on lecture notes by Dr. Eric M. Schwartz Decimal Number System: Our standard number system is base, also
More informationNumber Systems I. CIS0082 Logic and Foundations of Mathematics. David Goodwin. 11:00, Tuesday 18 th October
Number Systems I CIS0082 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
More informationSimulation & Synthesis Using VHDL
Floating Point Multipliers: Simulation & Synthesis Using VHDL By: Raj Kumar Singh  B.E. (Hons.) Electrical & Electronics Shivananda Reddy  B.E. (Hons.) Electrical & Electronics BITS, PILANI Outline Introduction
More informationAddition Methods. Methods Jottings Expanded Compact Examples 8 + 7 = 15
Addition Methods Methods Jottings Expanded Compact Examples 8 + 7 = 15 48 + 36 = 84 or: Write the numbers in columns. Adding the tens first: 47 + 76 110 13 123 Adding the units first: 47 + 76 13 110 123
More informationNUMBER SYSTEMS. 1.1 Introduction
NUMBER SYSTEMS 1.1 Introduction There are several number systems which we normally use, such as decimal, binary, octal, hexadecimal, etc. Amongst them we are most familiar with the decimal number system.
More information2 Number Systems 2.1. Foundations of Computer Science Cengage Learning
2 Number Systems 2.1 Foundations of Computer Science Cengage Learning 2.2 Objectives After studying this chapter, the student should be able to: Understand the concept of number systems. Distinguish between
More informationTo convert an arbitrary power of 2 into its English equivalent, remember the rules of exponential arithmetic:
Binary Numbers In computer science we deal almost exclusively with binary numbers. it will be very helpful to memorize some binary constants and their decimal and English equivalents. By English equivalents
More informationThis 3digit ASCII string could also be calculated as n = (Data[2]0x30) +10*((Data[1]0x30)+10*(Data[0]0x30));
Introduction to Embedded Microcomputer Systems Lecture 5.1 2.9. Conversions ASCII to binary n = 100*(Data[0]0x30) + 10*(Data[1]0x30) + (Data[2]0x30); This 3digit ASCII string could also be calculated
More informationBinary math. Resources and methods for learning about these subjects (list a few here, in preparation for your research):
Binary math This worksheet and all related files are licensed under the Creative Commons Attribution License, version 1.0. To view a copy of this license, visit http://creativecommons.org/licenses/by/1.0/,
More informationCHAPTER 3 Numbers and Numeral Systems
CHAPTER 3 Numbers and Numeral Systems Numbers play an important role in almost all areas of mathematics, not least in calculus. Virtually all calculus books contain a thorough description of the natural,
More informationTI86 Graphing Calculator Keystroke Guide
TI86 Graphing Calculator Keystroke Guide In your textbook you will notice that on some pages a keyshaped icon appears next to a brief description of a feature on your graphing calculator. In this guide
More information2 Number Systems. Source: Foundations of Computer Science Cengage Learning. Objectives After studying this chapter, the student should be able to:
2 Number Systems 2.1 Source: Foundations of Computer Science Cengage Learning Objectives After studying this chapter, the student should be able to: Understand the concept of number systems. Distinguish
More informationInteger multiplication
Integer multiplication Suppose we have two unsigned integers, A and B, and we wish to compute their product. Let A be the multiplicand and B the multiplier: A n 1... A 1 A 0 multiplicand B n 1... B 1 B
More informationDIGITAL FUNDAMENTALS lesson 4 Number systems
The decimal number system In the decimal number system the base is 0. For example the number 4069 means 4x000 + 0x00 + 6x0 + 9x. The powers of 0 with the number 4069 in tabelvorm are: power 0 3 0 2 0 0
More information2. Perform the division as if the numbers were whole numbers. You may need to add zeros to the back of the dividend to complete the division
Math Section 5. Dividing Decimals 5. Dividing Decimals Review from Section.: Quotients, Dividends, and Divisors. In the expression,, the number is called the dividend, is called the divisor, and is called
More informationThe Essentials of Computer Organization and Architecture. Linda Null and Julia Lobur Jones and Bartlett Publishers, 2003
The Essentials of Computer Organization and Architecture Linda Null and Julia Lobur Jones and Bartlett Publishers, 2003 Chapter 2 Instructor's Manual Chapter Objectives Chapter 2, Data Representation,
More information2.2 Scientific Notation: Writing Large and Small Numbers
2.2 Scientific Notation: Writing Large and Small Numbers A number written in scientific notation has two parts. A decimal part: a number that is between 1 and 10. An exponential part: 10 raised to an exponent,
More information> 2. Error and Computer Arithmetic
> 2. Error and Computer Arithmetic Numerical analysis is concerned with how to solve a problem numerically, i.e., how to develop a sequence of numerical calculations to get a satisfactory answer. Part
More informationNumbering Systems. InThisAppendix...
G InThisAppendix... Introduction Binary Numbering System Hexadecimal Numbering System Octal Numbering System Binary Coded Decimal (BCD) Numbering System Real (Floating Point) Numbering System BCD/Binary/Decimal/Hex/Octal
More information3. Convert a number from one number system to another
3. Convert a number from one number system to another Conversion between number bases: Hexa (16) Decimal (10) Binary (2) Octal (8) More Interest Way we need conversion? We need decimal system for real
More informationFractions and Linear Equations
Fractions and Linear Equations Fraction Operations While you can perform operations on fractions using the calculator, for this worksheet you must perform the operations by hand. You must show all steps
More informationBase Conversion written by Cathy Saxton
Base Conversion written by Cathy Saxton 1. Base 10 In base 10, the digits, from right to left, specify the 1 s, 10 s, 100 s, 1000 s, etc. These are powers of 10 (10 x ): 10 0 = 1, 10 1 = 10, 10 2 = 100,
More informationBinary Numbers The Computer Number System
Binary Numbers The Computer Number System Number systems are simply ways to count things. Ours is the base0 or radix0 system. Note that there is no symbol for 0 or for the base of any system. We count,2,3,4,5,6,7,8,9,
More informationNumber Systems and Radix Conversion
Number Systems and Radix Conversion Sanjay Rajopadhye, Colorado State University 1 Introduction These notes for CS 270 describe polynomial number systems. The material is not in the textbook, but will
More informationGoals. Unary Numbers. Decimal Numbers. 3,148 is. 1000 s 100 s 10 s 1 s. Number Bases 1/12/2009. COMP370 Intro to Computer Architecture 1
Number Bases //9 Goals Numbers Understand binary and hexadecimal numbers Be able to convert between number bases Understand binary fractions COMP37 Introduction to Computer Architecture Unary Numbers Decimal
More information2011, The McGrawHill Companies, Inc. Chapter 3
Chapter 3 3.1 Decimal System The radix or base of a number system determines the total number of different symbols or digits used by that system. The decimal system has a base of 10 with the digits 0 through
More informationRecall the process used for adding decimal numbers. 1. Place the numbers to be added in vertical format, aligning the decimal points.
2 MODULE 4. DECIMALS 4a Decimal Arithmetic Adding Decimals Recall the process used for adding decimal numbers. Adding Decimals. To add decimal numbers, proceed as follows: 1. Place the numbers to be added
More informationOrder of Operations  PEMDAS. Rules for Multiplying or Dividing Positive/Negative Numbers
Order of Operations  PEMDAS *When evaluating an expression, follow this order to complete the simplification: Parenthesis ( ) EX. (52)+3=6 (5 minus 2 must be done before adding 3 because it is in parenthesis.)
More informationTYPES OF NUMBERS. Example 2. Example 1. Problems. Answers
TYPES OF NUMBERS When two or more integers are multiplied together, each number is a factor of the product. Nonnegative integers that have exactly two factors, namely, one and itself, are called prime
More informationChapter 1. Binary, octal and hexadecimal numbers
Chapter 1. Binary, octal and hexadecimal numbers This material is covered in the books: Nelson Magor Cooke et al, Basic mathematics for electronics (7th edition), Glencoe, Lake Forest, Ill., 1992. [Hamilton
More informationChapter 7 Lab  Decimal, Binary, Octal, Hexadecimal Numbering Systems
Chapter 7 Lab  Decimal, Binary, Octal, Hexadecimal Numbering Systems This assignment is designed to familiarize you with different numbering systems, specifically: binary, octal, hexadecimal (and decimal)
More informationPAYCHEX, INC. BASIC BUSINESS MATH TRAINING MODULE
PAYCHEX, INC. BASIC BUSINESS MATH TRAINING MODULE 1 Property of Paychex, Inc. Basic Business Math Table of Contents Overview...3 Objectives...3 Calculator...4 Basic Calculations...6 Order of Operation...9
More informationFractional Numbers. Fractional Number Notations. Fixedpoint Notation. Fixedpoint Notation
2 Fractional Numbers Fractional Number Notations 2010  Claudio Fornaro Ver. 1.4 Fractional numbers have the form: xxxxxxxxx.yyyyyyyyy where the x es constitute the integer part of the value and the y
More informationBinary Numbering Systems
Binary Numbering Systems April 1997, ver. 1 Application Note 83 Introduction Binary numbering systems are used in virtually all digital systems, including digital signal processing (DSP), networking, and
More informationCS101 Lecture 11: Number Systems and Binary Numbers. Aaron Stevens 14 February 2011
CS101 Lecture 11: Number Systems and Binary Numbers Aaron Stevens 14 February 2011 1 2 1 3!!! MATH WARNING!!! TODAY S LECTURE CONTAINS TRACE AMOUNTS OF ARITHMETIC AND ALGEBRA PLEASE BE ADVISED THAT CALCULTORS
More informationCOMPASS Numerical Skills/PreAlgebra Preparation Guide. Introduction Operations with Integers Absolute Value of Numbers 13
COMPASS Numerical Skills/PreAlgebra Preparation Guide Please note that the guide is for reference only and that it does not represent an exact match with the assessment content. The Assessment Centre
More informationDecimal Numbers: Base 10 Integer Numbers & Arithmetic
Decimal Numbers: Base 10 Integer Numbers & Arithmetic Digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 Example: 3271 = (3x10 3 ) + (2x10 2 ) + (7x10 1 )+(1x10 0 ) Ward 1 Ward 2 Numbers: positional notation Number
More informationActivity 1: Bits and Bytes
ICS3U (Java): Introduction to Computer Science, Grade 11, University Preparation Activity 1: Bits and Bytes The Binary Number System Computers use electrical circuits that include many transistors and
More informationBasic numerical skills: POWERS AND LOGARITHMS
1. Introduction (easy) Basic numerical skills: POWERS AND LOGARITHMS Powers and logarithms provide a powerful way of representing large and small quantities, and performing complex calculations. Understanding
More informationLevent EREN levent.eren@ieu.edu.tr A306 Office Phone:4889882 INTRODUCTION TO DIGITAL LOGIC
Levent EREN levent.eren@ieu.edu.tr A306 Office Phone:4889882 1 Number Systems Representation Positive radix, positional number systems A number with radix r is represented by a string of digits: A n
More informationquotient = dividend / divisor, with a remainder Given dividend and divisor, we want to obtain quotient (Q) and remainder (R)
Binary division quotient = dividend / divisor, with a remainder dividend = divisor quotient + remainder Given dividend and divisor, we want to obtain quotient (Q) and remainder (R) We will start from our
More informationBinary Numbers. Bob Brown Information Technology Department Southern Polytechnic State University
Binary Numbers Bob Brown Information Technology Department Southern Polytechnic State University Positional Number Systems The idea of number is a mathematical abstraction. To use numbers, we must represent
More informationSigned Binary Arithmetic
Signed Binary Arithmetic In the real world of mathematics, computers must represent both positive and negative binary numbers. For example, even when dealing with positive arguments, mathematical operations
More informationLies My Calculator and Computer Told Me
Lies My Calculator and Computer Told Me 2 LIES MY CALCULATOR AND COMPUTER TOLD ME Lies My Calculator and Computer Told Me See Section.4 for a discussion of graphing calculators and computers with graphing
More informationBinary, Hexadecimal, Octal, and BCD Numbers
23CH_PHCalter_TMSETE_949118 23/2/2007 1:37 PM Page 1 Binary, Hexadecimal, Octal, and BCD Numbers OBJECTIVES When you have completed this chapter, you should be able to: Convert between binary and decimal
More informationGraphing Calculator Workshops
Graphing Calculator Workshops For the TI83/84 Classic Operating System & For the TI84 New Operating System (MathPrint) LEARNING CENTER Overview Workshop I Learn the general layout of the calculator Graphing
More informationLecture 8: Binary Multiplication & Division
Lecture 8: Binary Multiplication & Division Today s topics: Addition/Subtraction Multiplication Division Reminder: get started early on assignment 3 1 2 s Complement Signed Numbers two = 0 ten 0001 two
More informationChapter 2. Binary Values and Number Systems
Chapter 2 Binary Values and Number Systems Numbers Natural numbers, a.k.a. positive integers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645, 32 Negative numbers A
More informationBinary Representation. Number Systems. Base 10, Base 2, Base 16. Positional Notation. Conversion of Any Base to Decimal.
Binary Representation The basis of all digital data is binary representation. Binary  means two 1, 0 True, False Hot, Cold On, Off We must be able to handle more than just values for real world problems
More informationSection 1.5 Arithmetic in Other Bases
Section Arithmetic in Other Bases Arithmetic in Other Bases The operations of addition, subtraction, multiplication and division are defined for counting numbers independent of the system of numeration
More information6 3 4 9 = 6 10 + 3 10 + 4 10 + 9 10
Lesson The Binary Number System. Why Binary? The number system that you are familiar with, that you use every day, is the decimal number system, also commonly referred to as the base system. When you
More information4 Operations On Data
4 Operations On Data 4.1 Source: Foundations of Computer Science Cengage Learning Objectives After studying this chapter, students should be able to: List the three categories of operations performed on
More informationScope and Sequence KA KB 1A 1B 2A 2B 3A 3B 4A 4B 5A 5B 6A 6B
Scope and Sequence Earlybird Kindergarten, Standards Edition Primary Mathematics, Standards Edition Copyright 2008 [SingaporeMath.com Inc.] The check mark indicates where the topic is first introduced
More informationBorland C++ Compiler: Operators
Introduction Borland C++ Compiler: Operators An operator is a symbol that specifies which operation to perform in a statement or expression. An operand is one of the inputs of an operator. For example,
More informationParamedic Program PreAdmission Mathematics Test Study Guide
Paramedic Program PreAdmission Mathematics Test Study Guide 05/13 1 Table of Contents Page 1 Page 2 Page 3 Page 4 Page 5 Page 6 Page 7 Page 8 Page 9 Page 10 Page 11 Page 12 Page 13 Page 14 Page 15 Page
More informationZuse's Z3 Square Root Algorithm Talk given at Fall meeting of the Ohio Section of the MAA October 1999  College of Wooster
Zuse's Z3 Square Root Algorithm Talk given at Fall meeting of the Ohio Section of the MAA October 1999  College of Wooster Abstract Brian J. Shelburne Dept of Math and Comp Sci Wittenberg University In
More informationClick on the links below to jump directly to the relevant section
Click on the links below to jump directly to the relevant section Basic review Writing fractions in simplest form Comparing fractions Converting between Improper fractions and whole/mixed numbers Operations
More informationChapter 1: Order of Operations, Fractions & Percents
HOSP 1107 (Business Math) Learning Centre Chapter 1: Order of Operations, Fractions & Percents ORDER OF OPERATIONS When finding the value of an expression, the operations must be carried out in a certain
More information1.3 Order of Operations
1.3 Order of Operations As it turns out, there are more than just 4 basic operations. There are five. The fifth basic operation is that of repeated multiplication. We call these exponents. There is a bit
More informationMULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.
CHAPTER01 QUESTIONS MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. 1) Convert binary 010101 to octal. 1) A) 258 B) 58 C) 218 D) 158 2) Any number
More informationNow that we have a handle on the integers, we will turn our attention to other types of numbers.
1.2 Rational Numbers Now that we have a handle on the integers, we will turn our attention to other types of numbers. We start with the following definitions. Definition: Rational Number any number that
More informationMaths Module 2. Working with Fractions. This module covers fraction concepts such as:
Maths Module Working with Fractions This module covers fraction concepts such as: identifying different types of fractions converting fractions addition and subtraction of fractions multiplication and
More informationData Storage 3.1. Foundations of Computer Science Cengage Learning
3 Data Storage 3.1 Foundations of Computer Science Cengage Learning Objectives After studying this chapter, the student should be able to: List five different data types used in a computer. Describe how
More informationPrentice Hall: Middle School Math, Course 1 2002 Correlated to: New York Mathematics Learning Standards (Intermediate)
New York Mathematics Learning Standards (Intermediate) Mathematical Reasoning Key Idea: Students use MATHEMATICAL REASONING to analyze mathematical situations, make conjectures, gather evidence, and construct
More informationADDITION. Children should extend the carrying method to numbers with at least four digits.
Y5 AND Y6 ADDITION Children should extend the carrying method to numbers with at least four digits. 587 3587 + 475 + 675 1062 4262 1 1 1 1 1 Using similar methods, children will: add several numbers with
More informationEE 261 Introduction to Logic Circuits. Module #2 Number Systems
EE 261 Introduction to Logic Circuits Module #2 Number Systems Topics A. Number System Formation B. Base Conversions C. Binary Arithmetic D. Signed Numbers E. Signed Arithmetic F. Binary Codes Textbook
More information1. Give the 16 bit signed (twos complement) representation of the following decimal numbers, and convert to hexadecimal:
Exercises 1  number representations Questions 1. Give the 16 bit signed (twos complement) representation of the following decimal numbers, and convert to hexadecimal: (a) 3012 (b)  435 2. For each of
More informationLecture 2. Binary and Hexadecimal Numbers
Lecture 2 Binary and Hexadecimal Numbers Purpose: Review binary and hexadecimal number representations Convert directly from one base to another base Review addition and subtraction in binary representations
More informationDigital Design. Assoc. Prof. Dr. Berna Örs Yalçın
Digital Design Assoc. Prof. Dr. Berna Örs Yalçın Istanbul Technical University Faculty of Electrical and Electronics Engineering Office Number: 2318 Email: siddika.ors@itu.edu.tr Grading 1st Midterm 
More informationDecimal to Binary Conversion
Decimal to Binary Conversion A tool that makes the conversion of decimal values to binary values simple is the following table. The first row is created by counting right to left from one to eight, for
More informationFractions to decimals
Worksheet.4 Fractions and Decimals Section Fractions to decimals The most common method of converting fractions to decimals is to use a calculator. A fraction represents a division so is another way of
More informationMath. Mixed Number Fraction to Improper Fraction. Answers. Name: Convert the mixed number fraction to improper fraction = = 15
Convert the mixed number fraction to = 1 1 + = Get rid of your. 1 41 61. 8 6 1 = 1 10 1 = 41 ) 10 1 = 61. ) 6 = 8 1 = ) 1 = 1 4 1 = 1 = 1 10 4 = 64 64 6 4 = 8 6 = 6 = 6 6 = 6 8 1 = 1 = 9 4 = 8 1 1 = )
More information