Welcome to PR3 The Art of Optimization. Lecture 3 May 22nd, IGAD - Hopmanstraat, Breda

Size: px
Start display at page:

Download "Welcome to PR3 The Art of Optimization. Lecture 3 May 22nd, IGAD - Hopmanstraat, Breda"

Transcription

1 Lecture 3 May 22nd, IGAD - Hopmanstraat, Breda

2 Lecture 3 May 22nd, IGAD - Hopmanstraat, Breda > Recap > Demo Time > SIMD part 1/3 > Fixed Point part 2/2 > Homework part 3/4 > Coding Time

3 Lecture 3 May 22nd, IGAD - Hopmanstraat, Breda > Recap > Demo Time > SIMD part 1/3 > Fixed Point part 2/2 > Homework part 3/4 > Coding Time

4 Lecture 3 May 22nd, IGAD - Hopmanstraat, Breda > Recap >> Demo Time > SIMD part 1/3 > Fixed Point part 2/2 > Homework part 3/4 > Coding Time

5 Lecture 3 May 22nd, IGAD - Hopmanstraat, Breda Coding time: Homework in 15 minutes.

6

7

8

9

10 7. DO THINGS SIMULTANEOUSLY.

11 Lecture 3 May 22nd, IGAD - Hopmanstraat, Breda > Recap > Demo Time >> SIMD part 1/3 > Fixed Point part 2/2 > Homework part 3/4 > Coding Time

12 Welcome to PR3 The Art of Optimization SIMD: S ingle I nstruction M ultiple D ata

13 SIMD: S ingle I nstruction M ultiple D ata int columntotal[16]; for ( int x = 0; x < 16; x++ ) { columntotal[x] = 0; for ( int y = 0; y < 16; y++ ) { if (pixelset( x, y )) { columntotal[x]++; } } }

14 SIMD: S ingle I nstruction M ultiple D ata int columntotal[16]; for ( int x = 0; x < 16; x++ ) { columntotal[x] = 0; for ( int y = 0; y < 16; y++ ) if (pixelset( x, y )) columntotal[x]++; }

15 SIMD: S ingle I nstruction M ultiple D ata int x, y, ct[16]; for ( x = 0; x < 16; x++ ) for ( ct[x] = 0, y = 0; y < 16;; ) if (pixelset( x, y++ )) ct[x]++;

16 SIMD: S ingle I nstruction M ultiple D ata for(int ct[16],y,x=0;x<16;x++) for(ct[x]=0,y=0;y<16;) if(pixelset(x,y++))ct[x]++;

17 Welcome to PR3 The Art of Optimization SIMD: S ingle I nstruction M ultiple D ata

18 SIMD: S ingle I nstruction M ultiple D ata

19 SIMD: S ingle I nstruction M ultiple D ata char a[4] = { 192, 168, 1, 1 }; int a4 = (a[0] << 24) + (a[1] << 16) + (a[2] << 8) + (a[3]);

20 SIMD: S ingle I nstruction M ultiple D ata char a[4] = { 192, 168, 1, 1 }; int a4 = (a[0] << 24) + (a[1] << 16) + (a[2] << 8) + (a[3]); = (173<<24) + (194<<16) + (65<<8) + (113) =

21 ?

22 { 2, 3, 1, 6 } 0x { 2, 3, 1, 6 } 0x { 4, 6, 2, 12 } 0x C

23 { 2, 3, 1, 6 } { 2, 3, 1, 6 } * { 4, 9, 1, 36 }

24 { 2, 3, 1, 6 } * { 96, 144, 48, 288 } { 96, 144, 49, 32 }

25 red = (color >> 16) & 255; green = (color >> 8) & 255; blue = color & 255; scaled_red = (red * scale) >> 8; scaled_green = (green * scale) >> 8; scaled_blue = (blue * scale) >> 8; final_color = (scaled_red << 16) + (scaled_green << 8) + scaled_blue;

26 red_blue = color & 0xff00ff; green = color & 0x00ff00; red_blue_scaled = ((red_blue * scale) >> 8) & 0xff00ff; green_scaled = ((green * scale) >> 8) & 0x00ff00; final_color = red_blue_scaled + green_scaled;

27 char a[] = optimization skills rule ; char b[] = optimization kicks ass!! ; bool equal = true; for ( int l = strlen(a), i = 0; i < l; i++ ) { if (a[i]!= b[i]) { equal = false; break; } }

28 Lecture 3 May 22nd, IGAD - Hopmanstraat, Breda > Recap > Demo Time > SIMD part 1/3 >> Fixed Point part 2/2 > Homework part 3/4 > Coding Time

29 The Trick with the Imaginary Dot =? =?

30 The Trick with the Imaginary Dot =? =?

31 The Trick with the Imaginary Dot =? =?

32 The Trick with the Imaginary Dot =? =?

33 The Trick with the Imaginary Dot =? =?

34 The Trick with the Imaginary Dot =? =? INTEGER PART FRACTIONAL PART

35 The Trick with the Imaginary Dot =? =? INTEGER PART FRACTIONAL PART

36 The Trick with the Imaginary Dot =? =? INTEGER PART FRACTIONAL PART float pi = ; int fp_pi = (int)(pi * f);

37 And so the suffering starts * 2 =?

38 And so the suffering starts * 2 =? * =?

39 And so the suffering starts * 2 =? * =? Multiplication affects your end result!

40 And so the suffering starts * 2 =? * =? Multiplication affects your end result! int a = f * 1024; // 10-bit fractional, approx. 3 decimal digits int b = f * 1024; int c = a * b; // warning: c is now 1024 times too large!

41 And so the suffering starts * 2 =? * =? Multiplication affects your end result! int a = f * 1024; // 10-bit fractional, approx. 3 decimal digits int b = f * 1024; int c = a * b; // warning: c is now 1024 times too large! Solve: Option 1: int c = (a * b) >> 10; c = ~1.047 * 1024 Option 2: int c = a * (b >> 10); c = 0 Option 3: int c = (a >> 10) * b; c = 1 Option 4: int c = (a >> 5) * (b >> 5); Option 5: int c = (a >> 2) * (b >> 8); Option 6: int c = ((a >> 2) * (b >> 2)) >> 6;

42 Lecture 3 May 22nd, IGAD - Hopmanstraat, Breda > Recap > Demo Time > SIMD part 1/3 > Fixed Point part 1/2 >> Homework part 1/4 > Coding Time

43 ftp://chiptune.untergrund.net/users/in4kadmin/files/the_neglected_art_of_fixed_point_arithmetic_ pdf

44 Lecture 3 May 22nd, IGAD - Hopmanstraat, Breda > Recap > Demo Time > SIMD part 1/3 > Fixed Point part 1/2 > Homework part 1/4 >> Coding Time

1. Write a program to calculate distance traveled by light

1. Write a program to calculate distance traveled by light G. H. R a i s o n i C o l l e g e O f E n g i n e e r i n g D i g d o h H i l l s, H i n g n a R o a d, N a g p u r D e p a r t m e n t O f C o m p u t e r S c i e n c e & E n g g P r a c t i c a l M a

More information

How do computers represent numbers?

How do computers represent numbers? How do computers represent numbers? Tips & Tricks Week 1 Topics in Scientific Computing QMUL Semester A 2017/18 1/10 What does digital mean? The term DIGITAL refers to any device that operates on discrete

More information

Comp 11 Lectures. Mike Shah. June 20, Tufts University. Mike Shah (Tufts University) Comp 11 Lectures June 20, / 38

Comp 11 Lectures. Mike Shah. June 20, Tufts University. Mike Shah (Tufts University) Comp 11 Lectures June 20, / 38 Comp 11 Lectures Mike Shah Tufts University June 20, 2017 Mike Shah (Tufts University) Comp 11 Lectures June 20, 2017 1 / 38 Please do not distribute or host these slides without prior permission. Mike

More information

MATH Dr. Halimah Alshehri Dr. Halimah Alshehri

MATH Dr. Halimah Alshehri Dr. Halimah Alshehri MATH 1101 haalshehri@ksu.edu.sa 1 Introduction To Number Systems First Section: Binary System Second Section: Octal Number System Third Section: Hexadecimal System 2 Binary System 3 Binary System The binary

More information

Data Structures and Algorithms

Data Structures and Algorithms Data Structures and Algorithms Spring 2017-2018 Outline Announcements 1 Announcements 2 3 Recap Mergesort Of Note Labs start in Week02 in CS305b Do you have linux account? Lab times: Fri. 15.00, 16.00

More information

UNIT 5 QUADRATIC FUNCTIONS Lesson 2: Creating and Solving Quadratic Equations in One Variable Instruction

UNIT 5 QUADRATIC FUNCTIONS Lesson 2: Creating and Solving Quadratic Equations in One Variable Instruction Prerequisite Skills This lesson requires the use of the following skills: simplifying radicals working with complex numbers Introduction You can determine how far a ladder will extend from the base of

More information

Skills Practice Skills Practice for Lesson 4.1

Skills Practice Skills Practice for Lesson 4.1 Skills Practice Skills Practice for Lesson.1 Name Date Thinking About Numbers Counting Numbers, Whole Numbers, Integers, Rational and Irrational Numbers Vocabulary Define each term in your own words. 1.

More information

Lecture 5: Fusion Trees (ctd.) Johannes Fischer

Lecture 5: Fusion Trees (ctd.) Johannes Fischer Lecture 5: Fusion Trees (ctd.) Johannes Fischer Fusion Trees fusion tree pred/succ O(lg n / lg w) w.c. construction O(n) w.c. + SORT(n,w) space O(n) w.c. 2 2 Idea B-tree with branching factor b=w /5 b

More information

Lecture 4 Modeling, Analysis and Simulation in Logic Design. Dr. Yinong Chen

Lecture 4 Modeling, Analysis and Simulation in Logic Design. Dr. Yinong Chen Lecture 4 Modeling, Analysis and Simulation in Logic Design Dr. Yinong Chen The Engineering Design Process Define Problem and requirement Research Define Alternative solutions CAD Modeling Analysis Simulation

More information

Powers, Roots and Radicals. (11) Page #23 47 Column, #51, 54, #57 73 Column, #77, 80

Powers, Roots and Radicals. (11) Page #23 47 Column, #51, 54, #57 73 Column, #77, 80 Algebra 2/Trig Unit Notes Packet Name: Period: # Powers, Roots and Radicals () Homework Packet (2) Homework Packet () Homework Packet () Page 277 # 0 () Page 277 278 #7 6 Odd (6) Page 277 278 #8 60 Even

More information

CSE 311: Foundations of Computing. Lecture 14: Induction

CSE 311: Foundations of Computing. Lecture 14: Induction CSE 311: Foundations of Computing Lecture 14: Induction Mathematical Induction Method for proving statements about all natural numbers A new logical inference rule! It only applies over the natural numbers

More information

Scientific Notation. exploration. 1. Complete the table of values for the powers of ten M8N1.j. 110 Holt Mathematics

Scientific Notation. exploration. 1. Complete the table of values for the powers of ten M8N1.j. 110 Holt Mathematics exploration Georgia Performance Standards M8N1.j 1. Complete the table of values for the powers of ten. Exponent 6 10 6 5 10 5 4 10 4 Power 3 10 3 2 10 2 1 1 0 2 1 0.01 10 10 1 10 1 1 1 0 1 1 0.1 10 0

More information

E40M. Binary Numbers. M. Horowitz, J. Plummer, R. Howe 1

E40M. Binary Numbers. M. Horowitz, J. Plummer, R. Howe 1 E40M Binary Numbers M. Horowitz, J. Plummer, R. Howe 1 Reading Chapter 5 in the reader A&L 5.6 M. Horowitz, J. Plummer, R. Howe 2 Useless Box Lab Project #2 Adding a computer to the Useless Box alows us

More information

Kartsuba s Algorithm and Linear Time Selection

Kartsuba s Algorithm and Linear Time Selection CS 374: Algorithms & Models of Computation, Fall 2015 Kartsuba s Algorithm and Linear Time Selection Lecture 09 September 22, 2015 Chandra & Manoj (UIUC) CS374 1 Fall 2015 1 / 32 Part I Fast Multiplication

More information

Binary addition example worked out

Binary addition example worked out Binary addition example worked out Some terms are given here Exercise: what are these numbers equivalent to in decimal? The initial carry in is implicitly 0 1 1 1 0 (Carries) 1 0 1 1 (Augend) + 1 1 1 0

More information

Lesson 2-6: Graphs of Absolute Value Equations

Lesson 2-6: Graphs of Absolute Value Equations Where we re headed today Today we re going to take the net graphing step we ll learn how to graph absolute value equations. Here are the three things you are going to need to be able to do: 1. Match an

More information

Chapter 4 Number Representations

Chapter 4 Number Representations Chapter 4 Number Representations SKEE2263 Digital Systems Mun im/ismahani/izam {munim@utm.my,e-izam@utm.my,ismahani@fke.utm.my} February 9, 2016 Table of Contents 1 Fundamentals 2 Signed Numbers 3 Fixed-Point

More information

Coulomb s Law and Electric Fields

Coulomb s Law and Electric Fields Physics 102: Lecture 02 Coulomb s Law and Electric Fields Today we will get some practice using Coulomb s Law learn the concept of an Electric Field Physics 102: Lecture 2, Slide 1 4 m Coulomb Law practice:

More information

In this lecture, we will consider how to analyse an electrical circuit by applying KVL and KCL. As a result, we can predict the voltages and currents

In this lecture, we will consider how to analyse an electrical circuit by applying KVL and KCL. As a result, we can predict the voltages and currents In this lecture, we will consider how to analyse an electrical circuit by applying KVL and KCL. As a result, we can predict the voltages and currents around an electrical circuit. This is a short lecture,

More information

Computer Arithmetic. MATH 375 Numerical Analysis. J. Robert Buchanan. Fall Department of Mathematics. J. Robert Buchanan Computer Arithmetic

Computer Arithmetic. MATH 375 Numerical Analysis. J. Robert Buchanan. Fall Department of Mathematics. J. Robert Buchanan Computer Arithmetic Computer Arithmetic MATH 375 Numerical Analysis J. Robert Buchanan Department of Mathematics Fall 2013 Machine Numbers When performing arithmetic on a computer (laptop, desktop, mainframe, cell phone,

More information

Chapter 1 CSCI

Chapter 1 CSCI Chapter 1 CSCI-1510-003 What is a Number? An expression of a numerical quantity A mathematical quantity Many types: Natural Numbers Real Numbers Rational Numbers Irrational Numbers Complex Numbers Etc.

More information

MITOCW MIT18_02SCF10Rec_61_300k

MITOCW MIT18_02SCF10Rec_61_300k MITOCW MIT18_02SCF10Rec_61_300k JOEL LEWIS: Hi. Welcome back to recitation. In lecture, you've been learning about the divergence theorem, also known as Gauss's theorem, and flux, and all that good stuff.

More information

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

THE TEACHER UNDERSTANDS THE REAL NUMBER SYSTEM AND ITS STRUCTURE, OPERATIONS, ALGORITHMS, AND REPRESENTATIONS The real number SySTeM C O M P E T E N C Y 1 THE TEACHER UNDERSTANDS THE REAL NUMBER SYSTEM AND ITS STRUCTURE, OPERATIONS, ALGORITHMS, AND REPRESENTATIONS This competency section reviews some of the fundamental

More information

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

Day 6: 6.4 Solving Polynomial Equations Warm Up: Factor. 1. x 2-2x x 2-9x x 2 + 6x + 5 Day 6: 6.4 Solving Polynomial Equations Warm Up: Factor. 1. x 2-2x - 15 2. x 2-9x + 14 3. x 2 + 6x + 5 Solving Equations by Factoring Recall the factoring pattern: Difference of Squares:...... Note: There

More information

Binary floating point

Binary floating point Binary floating point Notes for 2017-02-03 Why do we study conditioning of problems? One reason is that we may have input data contaminated by noise, resulting in a bad solution even if the intermediate

More information

Computer Science Introductory Course MSc - Introduction to Java

Computer Science Introductory Course MSc - Introduction to Java Computer Science Introductory Course MSc - Introduction to Java Lecture 1: Diving into java Pablo Oliveira ENST Outline 1 Introduction 2 Primitive types 3 Operators 4 5 Control Flow

More information

Math Lecture 18 Notes

Math Lecture 18 Notes Math 1010 - Lecture 18 Notes Dylan Zwick Fall 2009 In our last lecture we talked about how we can add, subtract, and multiply polynomials, and we figured out that, basically, if you can add, subtract,

More information

CSE 311: Foundations of Computing. Lecture 26: Cardinality

CSE 311: Foundations of Computing. Lecture 26: Cardinality CSE 311: Foundations of Computing Lecture 26: Cardinality Cardinality and Computability Computers as we know them grew out of a desire to avoid bugs in mathematical reasoning A brief history of reasoning

More information

CS 7B - Spring Assignment: Adapting the calculator for bitwise expressions. due 2/21/18

CS 7B - Spring Assignment: Adapting the calculator for bitwise expressions. due 2/21/18 CS 7B - Spring 2018 - Assignment: Adapting the calculator for bitwise expressions. due 2/21/18 Background Theory A bitwise number is a number in base 2. In base 2, place values are either a 1 or 0, depending

More information

Spring Lecture 21 NP-Complete Problems

Spring Lecture 21 NP-Complete Problems CISC 320 Introduction to Algorithms Spring 2014 Lecture 21 NP-Complete Problems 1 We discuss some hard problems: how hard? (computational complexity) what makes them hard? any solutions? Definitions Decision

More information

Graphing Radicals Business 7

Graphing Radicals Business 7 Graphing Radicals Business 7 Radical functions have the form: The most frequently used radical is the square root; since it is the most frequently used we assume the number 2 is used and the square root

More information

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

THE TEACHER UNDERSTANDS THE REAL NUMBER SYSTEM AND ITS STRUCTURE, OPERATIONS, ALGORITHMS, AND REPRESENTATIONS THE REAL NUMBER SYSTEM C O M P E T E N C Y 1 THE TEACHER UNDERSTANDS THE REAL NUMBER SYSTEM AND ITS STRUCTURE, OPERATIONS, ALGORITHMS, AND REPRESENTATIONS This competency section reviews some of the fundamental

More information

Computer Number Systems

Computer Number Systems Computer Number Systems All computers are electronic devices and can ultimately do one thing: detect whether an electrical signal is on or off. Therefore, the earliest computer scientists realized that

More information

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

14:332:231 DIGITAL LOGIC DESIGN. Why Binary Number System? :33:3 DIGITAL LOGIC DESIGN Ivan Marsic, Rutgers University Electrical & Computer Engineering Fall 3 Lecture #: Binary Number System Complement Number Representation X Y Why Binary Number System? Because

More information

CS Exam 1 Study Guide and Practice Exam

CS Exam 1 Study Guide and Practice Exam CS 150 - Exam 1 Study Guide and Practice Exam September 11, 2017 Summary 1 Disclaimer 2 Variables 2.1 Primitive Types.............................................. 2.2 Suggestions, Warnings, and Resources.................................

More information

Continuity and One-Sided Limits

Continuity and One-Sided Limits Continuity and One-Sided Limits 1. Welcome to continuity and one-sided limits. My name is Tuesday Johnson and I m a lecturer at the University of Texas El Paso. 2. With each lecture I present, I will start

More information

3.5 Solving Equations Involving Integers II

3.5 Solving Equations Involving Integers II 208 CHAPTER 3. THE FUNDAMENTALS OF ALGEBRA 3.5 Solving Equations Involving Integers II We return to solving equations involving integers, only this time the equations will be a bit more advanced, requiring

More information

Math /Foundations of Algebra/Fall 2017 Foundations of the Foundations: Proofs

Math /Foundations of Algebra/Fall 2017 Foundations of the Foundations: Proofs Math 4030-001/Foundations of Algebra/Fall 017 Foundations of the Foundations: Proofs A proof is a demonstration of the truth of a mathematical statement. We already know what a mathematical statement is.

More information

Wheels Radius / Distance Traveled

Wheels Radius / Distance Traveled Mechanics Teacher Note to the teacher On these pages, students will learn about the relationships between wheel radius, diameter, circumference, revolutions and distance. Students will use formulas relating

More information

C++ For Science and Engineering Lecture 13

C++ For Science and Engineering Lecture 13 C++ For Science and Engineering Lecture 13 John Chrispell Tulane University Wednesday September 22, 2010 Logical Expressions: Sometimes you want to use logical and and logical or (even logical not) in

More information

Digital Logic (2) Boolean Algebra

Digital Logic (2) Boolean Algebra Digital Logic (2) Boolean Algebra Boolean algebra is the mathematics of digital systems. It was developed in 1850 s by George Boole. We will use Boolean algebra to minimize logic expressions. Karnaugh

More information

CSE 20. Lecture 4: Introduction to Boolean algebra. CSE 20: Lecture4

CSE 20. Lecture 4: Introduction to Boolean algebra. CSE 20: Lecture4 CSE 20 Lecture 4: Introduction to Boolean algebra Reminder First quiz will be on Friday (17th January) in class. It is a paper quiz. Syllabus is all that has been done till Wednesday. If you want you may

More information

Honours Advanced Algebra Unit 2: Polynomial Functions Factors, Zeros, and Roots: Oh My! Learning Task (Task 5) Date: Period:

Honours Advanced Algebra Unit 2: Polynomial Functions Factors, Zeros, and Roots: Oh My! Learning Task (Task 5) Date: Period: Honours Advanced Algebra Name: Unit : Polynomial Functions Factors, Zeros, and Roots: Oh My! Learning Task (Task 5) Date: Period: Mathematical Goals Know and apply the Remainder Theorem Know and apply

More information

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

Natural Numbers: Also called the counting numbers The set of natural numbers is represented by the symbol,. Name Period Date: Topic: Real Numbers and Their Graphs Standard: 9-12.A.1.3 Objective: Essential Question: What is the significance of a point on a number line? Determine the relative position on the number

More information

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

THE TEACHER UNDERSTANDS THE REAL NUMBER SYSTEM AND ITS STRUCTURE, OPERATIONS, ALGORITHMS, AND REPRESENTATIONS The real number SySTeM C O M P E T E N C Y 1 THE TEACHER UNDERSTANDS THE REAL NUMBER SYSTEM AND ITS STRUCTURE, OPERATIONS, ALGORITHMS, AND REPRESENTATIONS This competency section reviews some of the fundamental

More information

SECTION Types of Real Numbers The natural numbers, positive integers, or counting numbers, are

SECTION Types of Real Numbers The natural numbers, positive integers, or counting numbers, are SECTION.-.3. Types of Real Numbers The natural numbers, positive integers, or counting numbers, are The negative integers are N = {, 2, 3,...}. {..., 4, 3, 2, } The integers are the positive integers,

More information

Intermediate Algebra Summary - Part II

Intermediate Algebra Summary - Part II Intermediate Algebra Summary - Part II This is an overview of the key ideas we have discussed during the middle part of this course. You may find this summary useful as a study aid, but remember that the

More information

( c ) E p s t e i n, C a r t e r a n d B o l l i n g e r C h a p t e r 1 7 : I n f o r m a t i o n S c i e n c e P a g e 1

( c ) E p s t e i n, C a r t e r a n d B o l l i n g e r C h a p t e r 1 7 : I n f o r m a t i o n S c i e n c e P a g e 1 ( c ) E p s t e i n, C a r t e r a n d B o l l i n g e r 2 0 1 6 C h a p t e r 1 7 : I n f o r m a t i o n S c i e n c e P a g e 1 CHAPTER 17: Information Science In this chapter, we learn how data can

More information

N-CN Complex Cube and Fourth Roots of 1

N-CN Complex Cube and Fourth Roots of 1 N-CN Complex Cube and Fourth Roots of 1 Task For each odd positive integer, the only real number solution to is while for even positive integers n, x = 1 and x = 1 are solutions to x n = 1. In this problem

More information

S C F F F T T F T T S C B F F F F F T F T F F T T T F F T F T T T F T T T

S C F F F T T F T T S C B F F F F F T F T F F T T T F F T F T T T F T T T EECS 270, Winter 2017, Lecture 1 Page 1 of 6 Use pencil! Say we live in the rather black and white world where things (variables) are either true (T) or false (F). So if S is Mark is going to the Store

More information

Test 2. Monday, November 12, 2018

Test 2. Monday, November 12, 2018 Test 2 Monday, November 12, 2018 Instructions. The only aids allowed are a hand-held calculator and one cheat sheet, i.e. an 8.5 11 sheet with information written on one side in your own handwriting. No

More information

Systems Analysis and Control

Systems Analysis and Control Systems Analysis and Control Matthew M. Peet Arizona State University Lecture 13: Root Locus Continued Overview In this Lecture, you will learn: Review Definition of Root Locus Points on the Real Axis

More information

Science as Break from Vacation

Science as Break from Vacation I. Physics & Measurement Cartoon: Science as Break from Vacation - Syllabus - Requirements - Homework via Web Assign 1.1 Introduction The first statement that our teacher made in the physics class in my

More information

A. Incorrect! Apply the rational root test to determine if any rational roots exist.

A. Incorrect! Apply the rational root test to determine if any rational roots exist. College Algebra - Problem Drill 13: Zeros of Polynomial Functions No. 1 of 10 1. Determine which statement is true given f() = 3 + 4. A. f() is irreducible. B. f() has no real roots. C. There is a root

More information

What if the characteristic equation has a double root?

What if the characteristic equation has a double root? MA 360 Lecture 17 - Summary of Recurrence Relations Friday, November 30, 018. Objectives: Prove basic facts about basic recurrence relations. Last time, we looked at the relational formula for a sequence

More information

SECTION 2.5: FINDING ZEROS OF POLYNOMIAL FUNCTIONS

SECTION 2.5: FINDING ZEROS OF POLYNOMIAL FUNCTIONS SECTION 2.5: FINDING ZEROS OF POLYNOMIAL FUNCTIONS Assume f ( x) is a nonconstant polynomial with real coefficients written in standard form. PART A: TECHNIQUES WE HAVE ALREADY SEEN Refer to: Notes 1.31

More information

Determining the Spread of a Distribution

Determining the Spread of a Distribution Determining the Spread of a Distribution 1.3-1.5 Cathy Poliak, Ph.D. cathy@math.uh.edu Department of Mathematics University of Houston Lecture 3-2311 Lecture 3-2311 1 / 58 Outline 1 Describing Quantitative

More information

Determining the Spread of a Distribution

Determining the Spread of a Distribution Determining the Spread of a Distribution 1.3-1.5 Cathy Poliak, Ph.D. cathy@math.uh.edu Department of Mathematics University of Houston Lecture 3-2311 Lecture 3-2311 1 / 58 Outline 1 Describing Quantitative

More information

Carry Look Ahead Adders

Carry Look Ahead Adders Carry Look Ahead Adders Lesson Objectives: The objectives of this lesson are to learn about: 1. Carry Look Ahead Adder circuit. 2. Binary Parallel Adder/Subtractor circuit. 3. BCD adder circuit. 4. Binary

More information

Jim Lambers MAT 610 Summer Session Lecture 2 Notes

Jim Lambers MAT 610 Summer Session Lecture 2 Notes Jim Lambers MAT 610 Summer Session 2009-10 Lecture 2 Notes These notes correspond to Sections 2.2-2.4 in the text. Vector Norms Given vectors x and y of length one, which are simply scalars x and y, the

More information

Chapter 1: Foundations for Algebra

Chapter 1: Foundations for Algebra Chapter 1: Foundations for Algebra 1 Unit 1: Vocabulary 1) Natural Numbers 2) Whole Numbers 3) Integers 4) Rational Numbers 5) Irrational Numbers 6) Real Numbers 7) Terminating Decimal 8) Repeating Decimal

More information

Fundamentals of Mathematics I

Fundamentals of Mathematics I Fundamentals of Mathematics I Kent State Department of Mathematical Sciences Fall 2008 Available at: http://www.math.kent.edu/ebooks/10031/book.pdf August 4, 2008 Contents 1 Arithmetic 2 1.1 Real Numbers......................................................

More information

Fall 2015 Lecture 14: Modular congruences. cse 311: foundations of computing

Fall 2015 Lecture 14: Modular congruences. cse 311: foundations of computing Fall 2015 Lecture 14: Modular congruences cse 311: foundations of computing If a and b are positive integers, then gcd a, b = gcd (b, a mod b) Useful GCD Fact Proof: By definition a = a div b b + (a mod

More information

Antiderivatives! Outline. James K. Peterson. January 28, Antiderivatives. Simple Fractional Power Antiderivatives

Antiderivatives! Outline. James K. Peterson. January 28, Antiderivatives. Simple Fractional Power Antiderivatives Antiderivatives! James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University January 28, 2014 Outline Antiderivatives Simple Fractional Power Antiderivatives

More information

Midterm 3 Review. Terms. Formulas and Rules to Use. Math 1010, Fall 2011 Instructor: Marina Gresham. Odd Root ( n x where n is odd) Exponent

Midterm 3 Review. Terms. Formulas and Rules to Use. Math 1010, Fall 2011 Instructor: Marina Gresham. Odd Root ( n x where n is odd) Exponent Math 1010, Fall 2011 Instructor: Marina Gresham Terms Midterm 3 Review Exponent Polynomial - Monomial - Binomial - Trinomial - Standard Form - Degree - Leading Coefficient - Constant Term Difference of

More information

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

not to be republished NCERT REAL NUMBERS CHAPTER 1 (A) Main Concepts and Results REAL NUMBERS CHAPTER 1 (A) Main Concepts and Results Euclid s Division Lemma : Given two positive integers a and b, there exist unique integers q and r satisfying a = bq + r, 0 r < b. Euclid s Division

More information

Chemical Bonding Basics

Chemical Bonding Basics Chemical Bonding Basics Reading: Ch 9, sections 5-9 Homework: Chapter 9: 49, 51, 53, 59, 63*, 69, 71*,73 * = important homework question Recap and overview: We have already investigated the structure of

More information

Order of Operations. Real numbers

Order of Operations. Real numbers Order of Operations When simplifying algebraic expressions we use the following order: 1. Perform operations within a parenthesis. 2. Evaluate exponents. 3. Multiply and divide from left to right. 4. Add

More information

What is Binary? Digital Systems and Information Representation. An Example. Physical Representation. Boolean Algebra

What is Binary? Digital Systems and Information Representation. An Example. Physical Representation. Boolean Algebra What is Binary? Digital Systems and Information Representation CSE 102 Underlying base signals are two valued: 0 or 1 true or false (T or F) high or low (H or L) One bit is the smallest unambiguous unit

More information

Finite Automata Part Two

Finite Automata Part Two Finite Automata Part Two Recap from Last Time Old MacDonald Had a Symbol, Σ-eye-ε-ey, Oh! You may have noticed that we have several letter- E-ish symbols in CS103, which can get confusing! Here s a quick

More information

Numerical Analysis and Computing

Numerical Analysis and Computing Numerical Analysis and Computing Lecture Notes #02 Calculus Review; Computer Artihmetic and Finite Precision; and Convergence; Joe Mahaffy, mahaffy@math.sdsu.edu Department of Mathematics Dynamical Systems

More information

YORK UNIVERSITY. Faculty of Science Department of Mathematics and Statistics MATH A Test #2 June 11, Solutions

YORK UNIVERSITY. Faculty of Science Department of Mathematics and Statistics MATH A Test #2 June 11, Solutions YORK UNIVERSITY Faculty of Science Department of Mathematics and Statistics MATH 2. A Test #2 June, 2 Solutions. (5 + 5 + 5 pts) The probability of a student in MATH 4 passing a test is.82. Suppose students

More information

Chapter 1: Foundations for Algebra

Chapter 1: Foundations for Algebra Chapter 1: Foundations for Algebra 1 Unit 1: Vocabulary 1) Natural Numbers 2) Whole Numbers 3) Integers 4) Rational Numbers 5) Irrational Numbers 6) Real Numbers 7) Terminating Decimal 8) Repeating Decimal

More information

Math 109 HW 9 Solutions

Math 109 HW 9 Solutions Math 109 HW 9 Solutions Problems IV 18. Solve the linear diophantine equation 6m + 10n + 15p = 1 Solution: Let y = 10n + 15p. Since (10, 15) is 5, we must have that y = 5x for some integer x, and (as we

More information

Decision Procedures. Jochen Hoenicke. Software Engineering Albert-Ludwigs-University Freiburg. Winter Term 2016/17

Decision Procedures. Jochen Hoenicke. Software Engineering Albert-Ludwigs-University Freiburg. Winter Term 2016/17 Decision Procedures Jochen Hoenicke Software Engineering Albert-Ludwigs-University Freiburg Winter Term 2016/17 Jochen Hoenicke (Software Engineering) Decision Procedures Winter Term 2016/17 1 / 436 Program

More information

Section 7.1: Functions Defined on General Sets

Section 7.1: Functions Defined on General Sets Section 7.1: Functions Defined on General Sets In this chapter, we return to one of the most primitive and important concepts in mathematics - the idea of a function. Functions are the primary object of

More information

Image Acquisition and Sampling Theory

Image Acquisition and Sampling Theory Image Acquisition and Sampling Theory Electromagnetic Spectrum The wavelength required to see an object must be the same size of smaller than the object 2 Image Sensors 3 Sensor Strips 4 Digital Image

More information

Antiderivatives! James K. Peterson. January 28, Department of Biological Sciences and Department of Mathematical Sciences Clemson University

Antiderivatives! James K. Peterson. January 28, Department of Biological Sciences and Department of Mathematical Sciences Clemson University ! James K. Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University January 28, 2014 Outline 1 2 Simple Fractional Power Abstract This lecture is going to talk

More information

WISCONSIN HIGH SCHOOL STATE MATHEMATICS MEET WISCONSIN MATHEMATICS COUNCIL February 29-March 4, 2016

WISCONSIN HIGH SCHOOL STATE MATHEMATICS MEET WISCONSIN MATHEMATICS COUNCIL February 29-March 4, 2016 Problem Set #1 For this first problem set, calculators are not allowed. They may be used for the remainder of the meet only, starting with Problem Set #2. In simplest form, what is the numerical value

More information

Data byte 0 Data byte 1 Data byte 2 Data byte 3 Data byte 4. 0xA Register Address MSB data byte Data byte Data byte LSB data byte

Data byte 0 Data byte 1 Data byte 2 Data byte 3 Data byte 4. 0xA Register Address MSB data byte Data byte Data byte LSB data byte SFP200 CAN 2.0B Protocol Implementation Communications Features CAN 2.0b extended frame format 500 kbit/s Polling mechanism allows host to determine the rate of incoming data Registers The SFP200 provides

More information

CS 361 Meeting 26 11/10/17

CS 361 Meeting 26 11/10/17 CS 361 Meeting 26 11/10/17 1. Homework 8 due Announcements A Recognizable, but Undecidable Language 1. Last class, I presented a brief, somewhat inscrutable proof that the language A BT M = { M w M is

More information

Algorithms CMSC Homework set #1 due January 14, 2015

Algorithms CMSC Homework set #1 due January 14, 2015 Algorithms CMSC-27200 http://alg15.cs.uchicago.edu Homework set #1 due January 14, 2015 Read the homework instructions on the website. The instructions that follow here are only an incomplete summary.

More information

Number Systems III MA1S1. Tristan McLoughlin. December 4, 2013

Number Systems III MA1S1. Tristan McLoughlin. December 4, 2013 Number Systems III MA1S1 Tristan McLoughlin December 4, 2013 http://en.wikipedia.org/wiki/binary numeral system http://accu.org/index.php/articles/1558 http://www.binaryconvert.com http://en.wikipedia.org/wiki/ascii

More information

Adders, subtractors comparators, multipliers and other ALU elements

Adders, subtractors comparators, multipliers and other ALU elements CSE4: Components and Design Techniques for Digital Systems Adders, subtractors comparators, multipliers and other ALU elements Instructor: Mohsen Imani UC San Diego Slides from: Prof.Tajana Simunic Rosing

More information

Section 2.1: Introduction to the Logic of Quantified Statements

Section 2.1: Introduction to the Logic of Quantified Statements Section 2.1: Introduction to the Logic of Quantified Statements In the previous chapter, we studied a branch of logic called propositional logic or propositional calculus. Loosely speaking, propositional

More information

Welcome to Math Video Lessons. Stanley Ocken. Department of Mathematics The City College of New York Fall 2013

Welcome to Math Video Lessons. Stanley Ocken. Department of Mathematics The City College of New York Fall 2013 Welcome to Math 19500 Video Lessons Prof. Department of Mathematics The City College of New York Fall 013 An important feature of the following Beamer slide presentations is that you, the reader, move

More information

G o a l A r e a 1 : C u r r i c u l u m a n d T e c h n o l o g y. 3. G o a l A r e a 2 : F a c i l i t i e s... 9

G o a l A r e a 1 : C u r r i c u l u m a n d T e c h n o l o g y. 3. G o a l A r e a 2 : F a c i l i t i e s... 9 Table of Contents G o a l A r e a 1 : C u r r i c u l u m a n d T e c h n o l o g y. 3 G o a l A r e a 2 : F a c i l i t i e s................ 9 G o a l A r e a 3 : C o m m u n i c a t i o n a n d P a

More information

ESE TOTAL EVALUATION SCHEME CREDITS INTERNAL EVALUATION SEMESTER L T P TA CT TOTAL (INT.) (EXT.

ESE TOTAL EVALUATION SCHEME CREDITS INTERNAL EVALUATION SEMESTER L T P TA CT TOTAL (INT.) (EXT. SEMESTER WISE COMPREHENSIVE CURRICULAR STRUCTURE FOR FULL- TIME THREE-YEARS DIPLOMA COURSE IN ELECTRICAL ENGINEERING (INDUSTRIAL CONTROL) (COURSE CODE: EEIC) SEMESTER PERIODS INTERNAL EVALUATION EVALUATION

More information

Digital Logic Design ENEE x. Lecture 14

Digital Logic Design ENEE x. Lecture 14 Digital Logic Design ENEE 244-010x Lecture 14 Announcements Homework 6 due today Agenda Last time: Binary Adders and Subtracters (5.1, 5.1.1) Carry Lookahead Adders (5.1.2, 5.1.3) This time: Decimal Adders

More information

What is proof? Lesson 1

What is proof? Lesson 1 What is proof? Lesson The topic for this Math Explorer Club is mathematical proof. In this post we will go over what was covered in the first session. The word proof is a normal English word that you might

More information

Exam Pattern. Syllabus. Important Information. Section 1 - Mathematics (1 Mark / Question)

Exam Pattern. Syllabus. Important Information. Section 1 - Mathematics (1 Mark / Question) Exam Pattern Pattern: Paper Based exam with multiple choice questions Total Questions: 50 Total Marks: 60 Duration: 60 minutes Section 1: 45 Questions from Mathematics, 1 Mark Each Section 2: 5 Questions

More information

Sample solutions to Homework 4, Information-Theoretic Modeling (Fall 2014)

Sample solutions to Homework 4, Information-Theoretic Modeling (Fall 2014) Sample solutions to Homework 4, Information-Theoretic Modeling (Fall 204) Jussi Määttä October 2, 204 Question [First, note that we use the symbol! as an end-of-message symbol. When we see it, we know

More information

Chapter 9: Roots and Irrational Numbers

Chapter 9: Roots and Irrational Numbers Chapter 9: Roots and Irrational Numbers Index: A: Square Roots B: Irrational Numbers C: Square Root Functions & Shifting D: Finding Zeros by Completing the Square E: The Quadratic Formula F: Quadratic

More information

Cs302 Quiz for MID TERM Exam Solved

Cs302 Quiz for MID TERM Exam Solved Question # 1 of 10 ( Start time: 01:30:33 PM ) Total Marks: 1 Caveman used a number system that has distinct shapes: 4 5 6 7 Question # 2 of 10 ( Start time: 01:31:25 PM ) Total Marks: 1 TTL based devices

More information

Value Function Methods. CS : Deep Reinforcement Learning Sergey Levine

Value Function Methods. CS : Deep Reinforcement Learning Sergey Levine Value Function Methods CS 294-112: Deep Reinforcement Learning Sergey Levine Class Notes 1. Homework 2 is due in one week 2. Remember to start forming final project groups and writing your proposal! Proposal

More information

M HTh TTh Th H T U t h th

M HTh TTh Th H T U t h th Daily Practice 26.10.15 Q1. Solve the equation 8x + 7 = x 35 Q2. 1 1 / 3 x 2 / 5 Q3. Factorise 4x 16y Q4. Find 17% of 200 Today we are going to learn about scientific notation. Homework Due! Q5. Calculate

More information

Pre Calculus with Mrs. Bluell

Pre Calculus with Mrs. Bluell Welcome to Pre Calculus with Mrs. Bluell Quick Review Today's Topics include Interval Notation Exponent Rules Quadrants Distance Formula Midpoint Formula Circle Formula Alligator Mouths to Interval Notation

More information

Bosch BMP085 Barometer Floating Point Pressure Calculations

Bosch BMP085 Barometer Floating Point Pressure Calculations Bosch BMP085 Barometer Floating Point Pressure Calculations...and some analysis... January 30, 2013 Here s a set of equations for computing pressure with the Bosch BMP085 pressure sensor that use floating

More information

Eby, MATH 0310 Spring 2017 Page 53. Parentheses are IMPORTANT!! Exponents only change what they! So if a is not inside parentheses, then it

Eby, MATH 0310 Spring 2017 Page 53. Parentheses are IMPORTANT!! Exponents only change what they! So if a is not inside parentheses, then it Eby, MATH 010 Spring 017 Page 5 5.1 Eponents Parentheses are IMPORTANT!! Eponents only change what they! So if a is not inside parentheses, then it get raised to the power! Eample 1 4 b) 4 c) 4 ( ) d)

More information

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

Identify the specified numbers by circling. 1) The integers in the following list: 8 16, 8, -10, 0, 9, - 9 MAT 105-01C TEST 1 REVIEW NAME Identify the specified numbers by circling. 1) The integers in the following list: 8 16, 8, -10, 0, 9, - 9, 5.5, 16 8 2) The rational numbers in the following list: 0 14,

More information