Introduction to Computational Linear Algebra

Size: px
Start display at page:

Download "Introduction to Computational Linear Algebra"

Transcription

1 Introduction to Computational Linear Algebra Dr. Philippe B. Laval The University of Stewart Island September 14, 2001 Abstract This is an introduction to Numerical Analysis and Computational Linear Algebra. It gives a brief explanation about what this branch of mathematics is. It then discusses the issues involved when doing mathematics onacomputer. 1 Introduction Computational Linear Algebra falls under the larger field of Numerical Analysis. Numerical Analysis is the study of the methods used to obtain numerical results (as opposed to analytical results) to various problems and analyze (or predict) the errors produced by those approximations. So, Computational Linear Algebra is Numerical Analysis, applied to matrices. Emphasis will be placed on developing the numerical methods, understanding why they work, as well as on understanding their limitations. Some of the problems we will study this semester include: 1. Direct methods to solve linear systems of equations 2. Iterative methods to solve linear systems of equations 3. Approximating eigenvalues and eigenvectors 4. Applications of the above techniques Numerical methods require such tedious and repetitive arithmetic operations that it makes only sense to use them with a computer. A human would make too many mistakes. It would take a human too long to perform the required computations. However, a computer is essentially dumb and must be given detailed and complete instructions for every single step it is to perform. In other words, a computer program must be written. To better understand what is involved in finding the numerical solution of a problems, it helps to visualize the situation as shown on the flowchart in Figure 1. The various stages are described below. 1

2 Figure 1: Stages involved in solving a problem numerically 1. Input information. This is the given problem. It can be a set of data points we are trying to fit to a function. It could be a function we are trying to approximate. For example, you may need to know an approximate value for ln 5, and you forgot your calculator. It could be an integral you need to evaluate because you need to know the area of a region. This will be given. 2. The algorithm. Analgorithmisastepbystepmethodusedtosolvea problem, usually in a finite number of steps. Thus, an algorithm has to be developed, then it has to be coded so a computer can execute it. 3. Output information. This is what you want. Often, the answer given by the previous stage has to be interpreted for it to make sense to the average user. It appears then that to go from the input information to the output information, one has to find an algorithm which will perform the task. Thus, Numerical Analysis seems to be the science of finding algorithms. We realize very quickly there is much more to it. Very often, several algorithms exist to solve a problem. We must select one. There are various reasons for preferring one algorithm over another. The factors to take into account include: Speed. All other things being equal, the faster method will win. The company using the algorithm may have to pay to use the computer running it. In this case, time is also money. Accuracy. Numerical methods usually involve errors. Errors are present for different reasons, we will outline them later. But we have to deal with them. An algorithm which minimizes error growth will be highly considered. Very often, speed is at the expense of accuracy. In this case, we will select the fastest algorithm which gives us the desired accuracy. Computer resources. Some algorithms require a lot of memory to run, more than the machine being used may have. Thus, this aspect has to be taken into account. There are at least three main differences between an analytical solution and a numerical solution. 2

3 First, it is important to realize that a numerical analysis solution is always numerical. Often, an analytical method gives its answer in terms of a function which can then be used for specific instances. By studying the function, one can then deduce some of the properties the solution may have. Because the numerical solution is a number, we cannot analyze the properties of the answer. However, numerical solutions can be plotted to show the behavior of the solution. Another important distinction is that the result from numerical analysis is an approximation. However, the result can usually be made as accurate as needed. There are limitations to the achievable level of accuracy because of the way computers do arithmetic. In any case, the analysis of errors in a numerical analysis solution is a critically important part of the solution. Finally, an important advantage of numerical analysis is that it will give a solution, even when an analytical solution is not known. We now look more closely at the notion of error and how computers do arithmetic. 2 Computer Arithmetic and Error Analysis 2.1 Where do Errors Come From? In the practice of Numerical Analysis, it is important to be aware that computed solutions are not exact mathematical solutions. Errors can be introduced at the input information stage, or the algorithm stage. 1. Some errors at the input information stage include: (a) Error in the input data. The input information could be data coming from some measuring device. Such devices are rarely completely accurate. (b) Human errors. Computers are often blamed whenever there is an error. However, because humans are involved in the input phase, as well as in the algorithm and oputput phases, gross errors due to humans do occur. This is why every numerical result must be checked for reasonableness. (c) Error in the representation of the data. Even if we know the exact values of the data, the computer may only be able to handle an approximation of these values. For example, 1 is an irrational number; 3 it has an infinite number of digits. A computer can only handle a finite number of digits, therefore 1 might be approximated. In addition, due to hardware limitations, the computer can only represent 3 a small subset of the real numbers. Many numbers are therefore approximated, this introduces an error. 3

4 2. Errors introduced at the algorithm stage include: (a) Truncation errors. For example, when we approximate functions with Taylor series. We know that e x x n =. Since the computer can n! n=0 only add a finite number of terms, we can only approximate e x.we must truncate the series, thus the name truncation error. (b) Round-off errors. When most numbers are stored in a computer, they are approximated. See the example of 1 3 above. (c) Propagated errors. This refers to an error in the succeeding steps of a process due to an earlier error. 2.2 Representation of Numbers in a Computer Different computers use slightly different techniques, but the general procedure is similar. In computers, floating-point numbers have three parts: the sign the fraction part, often called the mantissa. the exponent part, often called the characteristic. The three parts together have a fixed total length (32 or 64 bits). Of the three parts, the fraction part uses the most bits (24 or 52). That number determines the precision. The exponent uses 7 or 11 bits. That number determines the range of values. The sign uses one bit. Computers represent their floating point numbers in the general form where B is the base used. Usually 2, 10 or 16. ±.d 1 d 2 d 3...d p B e (1) p is the number of significant bits (digits), that is the precision. e is an integer exponent d i are digits ranging from 0 to B 1. The exponent is adjusted so that d 1 is never 0. Because working with binary or hexadecimal numbers is awkward, and because the purpose of these notes is to give the student an idea of how numbers are represented, rather than great details, we will only look at examples using base 10. Example 1 Suppose that B =10and p =4then 4

5 27.39 would be represented as would be represented as would be represented as Because the number of bits used to represent a number is fixed, there is a finite number of distinct values a computer can represent. Since there are infinitely many numbers, not all numbers can be represented. Many of them will be approximated. This is a source of error. 2.3 Absolute Versus Relative Error, Significant Digits Since numerical methods only give approximate answers, knowing how far a numerical answer is from the exact answer, that is knowing the error, is very important. There are two common ways used to express the size of the error. They are the absolute error and the relative error. Definition 2 Suppose that ˆp is an approximation for p. 1. The absolute error is E p = p ˆp 2. The relative error is R p = E p p Example 3 Find the absolute and relative errors if x = and ˆx =3.14 and E x = x ˆx = = R x = = Example 4 Find the absolute and relative errors if x = and ˆx = E x =4 and 4 R x = =

6 Example 5 Find the absolute and relative errors if x = and ˆx = and E x = = R x = =.25 The relative error is usually more useful than the absolute error, it gives the size of the error relative to the quantity being studied. Another term commonly used to express accuracy is significant digits. Definition 6 (significant digits) We say that a quantity ˆp approximates p to d significant digits if d is the largest positive integer such that R p < 5 10 d Example 7 If x = and ˆx = 3.14, then we find above that R x = Tofind how many significant digits we have, we solve < 5 10 d < 10 d ( 5 log ) < d < d d< The largest integer satisfying the inequality is 3, thus, our approximation is to 3 significant digits. 2.4 Uncertainty in Data This type of error occurs in the input stage. Data from real world applications contains errors in most cases. These errors are due to the way the data is collected. It may come from a measuring device, and no mechanical device is perfect. It is important to know the number of significant digits in the input data. Conclusions should never be reported with more significant digits than the input data. For example, suppose that p 1 = = and p 2 = = Both have four significant digits of accuracy. If we perform addition, the calculator would give p 1 + p 2 = = But if the computer uses 4 significant digits, the proper answer would be =

7 2.5 Chopping off and Rounding off This type of error occurs both at the input stage and at the algorithm stage. Definition 8 (normalized decimal form) Arealnumberp is said to be in normalized decimal form if p is written where 1 d 1 9 and 0 d j 9 for j>1. p = ±0.d 1 d 2 d 3...d k d k n (2) Example 9 The normalized decimal representation of is Example 10 The normalized decimal representation of is Remark 11 If a number is in normalized decimal representation, the number of significant digits is the number of digits after the decimal point. Since the computer can only use a finite number of digits to represent a number internally, some numbers cannot be represented entirely. Assuming that k is the maximum number of decimal digits a computer uses, then the digits d k+1,d k+2,... of number p shown in equation 2 will be ignored. For d k, there are two possibilities. Either p is chopped off, in which case d k is kept. Or, p is rounded off in which case d k is kept if 0 d k+1 < 5; d k is replaced by d k +1 if d k+1 5. Most computers used some form of rounding off. This problem may occur even when one does not expect it. Binary (see section below) numbers are used to represent numbers internally. Many decimal numbers may appear to have fewer significant digits than the computer allows. However, when they are translated to base 2, the new number may have too many digits, thus it will be approximated. Example 12 Let p = 22 = Assume a computer uses 7 six-digit representation. Then the normalized decimal form of p would be: if the computer uses chopping off if the computer uses round off. 2.6 Truncation Error This error occurs at the algorithm stage. It refers to errors introduced when a more complicated mathematical expression is replaced with a more elementary formula. Consider the problem of evaluating e x2 dx 7

8 Since we do not know an antiderivative for e x2, we can only approximate this integral. One method is to use a Taylor series representation for e x2. Such a representation is given by e x2 =1+x 2 + x4 2! + x6 3! x 2n = n! n= x2n n! +... To approximate the integral, we have to use a finite number of terms from this series, thus we truncate it. Suppose we use the first five terms for our approximation. Then, if we let p = e x2 dx and if we call ˆp the approximation for p, wehave ˆp = ) (1+x 2 + x4 2! + x6 3! + x8 dx 4! ) 1 = (x + x3 3 + x5 5 (2!) + x7 7(3!) + x9 2 9(4!) 0 = The exact value of this integral happens to be p = Tofind how many significant digits our approximation has, we solve: < 10 d < 5 10 d < 10 d ( 5 ) log 10 < d < d d< Thus, ˆp agrees with p to six significant digits, which we can tell if we look at the exact answer. 8

9 2.7 Loss of Significance This is a common problem when subtracting quantities which are almost identical. It occurs at the algorithm stage. Consider the two numbers p 1 = and p 2 = Both have 11 significant digits. However, p 1 p 2 = = = Thus, the answer only has five significant digits. significance or subtractive cancellation. Example 13 Let f (x) =x ( x +1 x ) and let g (x) = can see that f is algebraically equivalent to g. f (x) =x ( x +1 x ) = x ( x +1 x )( x +1+ x ) ( ) x +1+ x x (x +1 x) = x +1+ x x = x +1+ x = g (x) This is known as loss of x x +1+ x. We However, f contains a subtraction. If x is large, x +1 will be close to x, thus we should be able to verify loss of significance. If we use six digits and rounding, we have: ( ) f (500) = = 500 ( ) = and 500 g (500) = = The exact answer (of either computation) is which gives us g (500) as computed above, if we round it of to six significant digits. Thus, g gives us a better answer, there is no subtraction involved. 9

10 This is important, and should be remembered. If a quantity involves a subtraction between two quantities which are almost equal, identities should be used whenever possible to try to rewrite the quantity to eliminate the subtraction. This is illustrated in the problems at the end of the chapter. 3 Exercises Exercise 14 Write the numbers below in normalized decimal form, and find how many significant digits they have Exercise 15 Find the error E x and the relative error R x in each case below. In addition, determine the number of significant digits in the approximation. 1. x = and ˆx = x = and ˆx = x = and ˆx = Exercise 16 Loss of significance error can be avoided in some cases by rearranging terms in the function using a known identity. For each case below, explain why there might be a loss of significance, and rearrange the terms so that the loss of significance disappears. 1. ln (x +1) ln x for large x. 2. x 2 +1 x for large x. 3. cos 2 x sin 2 x for x π cosx 2 for x π. 4 Bibliography References [BF] Burden, L. Richard, & Faires, J. Douglas, Numerical Analysis, Fifth Edition, PWS Publishing Company, [HL] Hanselman, Duane & Littlefield, Bruce, The Student Edition of MATLAB Version 5, Prentice Hall,

11 [MF] Matthews, H. John, & Fink, D. Kurtis, Numerical Methods Using MAT- LAB, ThirdEdition, Prentice Hall, [S] Nakamura, Schoichiro, Numerical Analysis and Graphic Visualization with MATLAB, Prentice Hall,

Measures of Error: for exact x and approximation x Absolute error e = x x. Relative error r = (x x )/x.

Measures 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 information

CHAPTER 5 Round-off errors

CHAPTER 5 Round-off errors CHAPTER 5 Round-off 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 information

Representation of functions as power series

Representation of functions as power series Representation of functions as power series Dr. Philippe B. Laval Kennesaw State University November 9, 008 Abstract This document is a summary of the theory and techniques used to represent functions

More information

COMP 250 Fall 2012 lecture 2 binary representations Sept. 11, 2012

COMP 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 information

CS321. Introduction to Numerical Methods

CS321. 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 40506-0633 August 7, 05 Number in

More information

Binary 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. 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 information

Computer Science 281 Binary and Hexadecimal Review

Computer 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 information

0.8 Rational Expressions and Equations

0.8 Rational Expressions and Equations 96 Prerequisites 0.8 Rational Expressions and Equations We now turn our attention to rational expressions - that is, algebraic fractions - and equations which contain them. The reader is encouraged to

More information

A Short Guide to Significant Figures

A Short Guide to Significant Figures A Short Guide to Significant Figures Quick Reference Section Here are the basic rules for significant figures - read the full text of this guide to gain a complete understanding of what these rules really

More information

Lies My Calculator and Computer Told Me

Lies 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 information

The BBP Algorithm for Pi

The BBP Algorithm for Pi The BBP Algorithm for Pi David H. Bailey September 17, 2006 1. Introduction The Bailey-Borwein-Plouffe (BBP) algorithm for π is based on the BBP formula for π, which was discovered in 1995 and published

More information

Numerical Matrix Analysis

Numerical Matrix Analysis Numerical Matrix Analysis Lecture Notes #10 Conditioning and / Peter Blomgren, blomgren.peter@gmail.com Department of Mathematics and Statistics Dynamical Systems Group Computational Sciences Research

More information

Part 1 Expressions, Equations, and Inequalities: Simplifying and Solving

Part 1 Expressions, Equations, and Inequalities: Simplifying and Solving Section 7 Algebraic Manipulations and Solving Part 1 Expressions, Equations, and Inequalities: Simplifying and Solving Before launching into the mathematics, let s take a moment to talk about the words

More information

NUMBER SYSTEMS. William Stallings

NUMBER 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 information

Solutions of Linear Equations in One Variable

Solutions of Linear Equations in One Variable 2. Solutions of Linear Equations in One Variable 2. OBJECTIVES. Identify a linear equation 2. Combine like terms to solve an equation We begin this chapter by considering one of the most important tools

More information

PURSUITS IN MATHEMATICS often produce elementary functions as solutions that need to be

PURSUITS IN MATHEMATICS often produce elementary functions as solutions that need to be Fast Approximation of the Tangent, Hyperbolic Tangent, Exponential and Logarithmic Functions 2007 Ron Doerfler http://www.myreckonings.com June 27, 2007 Abstract There are some of us who enjoy using our

More information

Integer Operations. Overview. Grade 7 Mathematics, Quarter 1, Unit 1.1. Number of Instructional Days: 15 (1 day = 45 minutes) Essential Questions

Integer Operations. Overview. Grade 7 Mathematics, Quarter 1, Unit 1.1. Number of Instructional Days: 15 (1 day = 45 minutes) Essential Questions Grade 7 Mathematics, Quarter 1, Unit 1.1 Integer Operations Overview Number of Instructional Days: 15 (1 day = 45 minutes) Content to Be Learned Describe situations in which opposites combine to make zero.

More information

Binary Adders: Half Adders and Full Adders

Binary Adders: Half Adders and Full Adders Binary Adders: Half Adders and Full Adders In this set of slides, we present the two basic types of adders: 1. Half adders, and 2. Full adders. Each type of adder functions to add two binary bits. In order

More information

Creating, Solving, and Graphing Systems of Linear Equations and Linear Inequalities

Creating, Solving, and Graphing Systems of Linear Equations and Linear Inequalities Algebra 1, Quarter 2, Unit 2.1 Creating, Solving, and Graphing Systems of Linear Equations and Linear Inequalities Overview Number of instructional days: 15 (1 day = 45 60 minutes) Content to be learned

More information

The Mathematics 11 Competency Test Percent Increase or Decrease

The Mathematics 11 Competency Test Percent Increase or Decrease The Mathematics 11 Competency Test Percent Increase or Decrease The language of percent is frequently used to indicate the relative degree to which some quantity changes. So, we often speak of percent

More information

Chapter 11 Number Theory

Chapter 11 Number Theory Chapter 11 Number Theory Number theory is one of the oldest branches of mathematics. For many years people who studied number theory delighted in its pure nature because there were few practical applications

More information

Relative and Absolute Change Percentages

Relative and Absolute Change Percentages Relative and Absolute Change Percentages Ethan D. Bolker Maura M. Mast September 6, 2007 Plan Use the credit card solicitation data to address the question of measuring change. Subtraction comes naturally.

More information

Figure 1. A typical Laboratory Thermometer graduated in C.

Figure 1. A typical Laboratory Thermometer graduated in C. SIGNIFICANT FIGURES, EXPONENTS, AND SCIENTIFIC NOTATION 2004, 1990 by David A. Katz. All rights reserved. Permission for classroom use as long as the original copyright is included. 1. SIGNIFICANT FIGURES

More information

Divide: 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. 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 information

Overview. Essential Questions. Precalculus, Quarter 4, Unit 4.5 Build Arithmetic and Geometric Sequences and Series

Overview. Essential Questions. Precalculus, Quarter 4, Unit 4.5 Build Arithmetic and Geometric Sequences and Series Sequences and Series Overview Number of instruction days: 4 6 (1 day = 53 minutes) Content to Be Learned Write arithmetic and geometric sequences both recursively and with an explicit formula, use them

More information

ECE 0142 Computer Organization. Lecture 3 Floating Point Representations

ECE 0142 Computer Organization. Lecture 3 Floating Point Representations ECE 0142 Computer Organization Lecture 3 Floating Point Representations 1 Floating-point arithmetic We often incur floating-point programming. Floating point greatly simplifies working with large (e.g.,

More information

To convert an arbitrary power of 2 into its English equivalent, remember the rules of exponential arithmetic:

To 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 information

8 Square matrices continued: Determinants

8 Square matrices continued: Determinants 8 Square matrices continued: Determinants 8. Introduction Determinants give us important information about square matrices, and, as we ll soon see, are essential for the computation of eigenvalues. You

More information

CORRELATED TO THE SOUTH CAROLINA COLLEGE AND CAREER-READY FOUNDATIONS IN ALGEBRA

CORRELATED TO THE SOUTH CAROLINA COLLEGE AND CAREER-READY FOUNDATIONS IN ALGEBRA We Can Early Learning Curriculum PreK Grades 8 12 INSIDE ALGEBRA, GRADES 8 12 CORRELATED TO THE SOUTH CAROLINA COLLEGE AND CAREER-READY FOUNDATIONS IN ALGEBRA April 2016 www.voyagersopris.com Mathematical

More information

Activity 1: Using base ten blocks to model operations on decimals

Activity 1: Using base ten blocks to model operations on decimals Rational Numbers 9: Decimal Form of Rational Numbers Objectives To use base ten blocks to model operations on decimal numbers To review the algorithms for addition, subtraction, multiplication and division

More information

Click on the links below to jump directly to the relevant section

Click on the links below to jump directly to the relevant section Click on the links below to jump directly to the relevant section What is algebra? Operations with algebraic terms Mathematical properties of real numbers Order of operations What is Algebra? Algebra is

More information

Operation Count; Numerical Linear Algebra

Operation Count; Numerical Linear Algebra 10 Operation Count; Numerical Linear Algebra 10.1 Introduction Many computations are limited simply by the sheer number of required additions, multiplications, or function evaluations. If floating-point

More information

3.1. Solving linear equations. Introduction. Prerequisites. Learning Outcomes. Learning Style

3.1. Solving linear equations. Introduction. Prerequisites. Learning Outcomes. Learning Style Solving linear equations 3.1 Introduction Many problems in engineering reduce to the solution of an equation or a set of equations. An equation is a type of mathematical expression which contains one or

More information

Number Systems and Radix Conversion

Number 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 information

This 3-digit ASCII string could also be calculated as n = (Data[2]-0x30) +10*((Data[1]-0x30)+10*(Data[0]-0x30));

This 3-digit 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 3-digit ASCII string could also be calculated

More information

Prentice Hall Connected Mathematics 2, 7th Grade Units 2009

Prentice Hall Connected Mathematics 2, 7th Grade Units 2009 Prentice Hall Connected Mathematics 2, 7th Grade Units 2009 Grade 7 C O R R E L A T E D T O from March 2009 Grade 7 Problem Solving Build new mathematical knowledge through problem solving. Solve problems

More information

This unit will lay the groundwork for later units where the students will extend this knowledge to quadratic and exponential functions.

This unit will lay the groundwork for later units where the students will extend this knowledge to quadratic and exponential functions. Algebra I Overview View unit yearlong overview here Many of the concepts presented in Algebra I are progressions of concepts that were introduced in grades 6 through 8. The content presented in this course

More information

Digital 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 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 information

Differentiation and Integration

Differentiation and Integration This material is a supplement to Appendix G of Stewart. You should read the appendix, except the last section on complex exponentials, before this material. Differentiation and Integration Suppose we have

More information

Section 4.1 Rules of Exponents

Section 4.1 Rules of Exponents Section 4.1 Rules of Exponents THE MEANING OF THE EXPONENT The exponent is an abbreviation for repeated multiplication. The repeated number is called a factor. x n means n factors of x. The exponent tells

More information

2010/9/19. Binary number system. Binary numbers. Outline. Binary to decimal

2010/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 base-2 Binary numbers 2 3 + 7 + 5 Some terminology Bit: a binary digit ( or ) Hexadecimal

More information

5.4 Solving Percent Problems Using the Percent Equation

5.4 Solving Percent Problems Using the Percent Equation 5. Solving Percent Problems Using the Percent Equation In this section we will develop and use a more algebraic equation approach to solving percent equations. Recall the percent proportion from the last

More information

1. The Fly In The Ointment

1. The Fly In The Ointment Arithmetic Revisited Lesson 5: Decimal Fractions or Place Value Extended Part 5: Dividing Decimal Fractions, Part 2. The Fly In The Ointment The meaning of, say, ƒ 2 doesn't depend on whether we represent

More information

Numbering Systems. InThisAppendix...

Numbering 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 information

Binary Division. Decimal Division. Hardware for Binary Division. Simple 16-bit Divider Circuit

Binary Division. Decimal Division. Hardware for Binary Division. Simple 16-bit Divider Circuit Decimal Division Remember 4th grade long division? 43 // quotient 12 521 // divisor dividend -480 41-36 5 // remainder Shift divisor left (multiply by 10) until MSB lines up with dividend s Repeat until

More information

LIES MY CALCULATOR AND COMPUTER TOLD ME

LIES MY CALCULATOR AND COMPUTER TOLD ME LIES MY CALCULATOR AND COMPUTER TOLD ME See Section Appendix.4 G for a discussion of graphing calculators and computers with graphing software. A wide variety of pocket-size calculating devices are currently

More information

Vector and Matrix Norms

Vector and Matrix Norms Chapter 1 Vector and Matrix Norms 11 Vector Spaces Let F be a field (such as the real numbers, R, or complex numbers, C) with elements called scalars A Vector Space, V, over the field F is a non-empty

More information

Significant Figures, Propagation of Error, Graphs and Graphing

Significant Figures, Propagation of Error, Graphs and Graphing Chapter Two Significant Figures, Propagation of Error, Graphs and Graphing Every measurement has an error associated with it. If you were to put an object on a balance and weight it several times you will

More information

= δx x + δy y. df ds = dx. ds y + xdy ds. Now multiply by ds to get the form of the equation in terms of differentials: df = y dx + x dy.

= δx x + δy y. df ds = dx. ds y + xdy ds. Now multiply by ds to get the form of the equation in terms of differentials: df = y dx + x dy. ERROR PROPAGATION For sums, differences, products, and quotients, propagation of errors is done as follows. (These formulas can easily be calculated using calculus, using the differential as the associated

More information

1.7 Graphs of Functions

1.7 Graphs of Functions 64 Relations and Functions 1.7 Graphs of Functions In Section 1.4 we defined a function as a special type of relation; one in which each x-coordinate was matched with only one y-coordinate. We spent most

More information

Simplifying Square-Root Radicals Containing Perfect Square Factors

Simplifying Square-Root Radicals Containing Perfect Square Factors DETAILED SOLUTIONS AND CONCEPTS - OPERATIONS ON IRRATIONAL NUMBERS Prepared by Ingrid Stewart, Ph.D., College of Southern Nevada Please Send Questions and Comments to ingrid.stewart@csn.edu. Thank you!

More information

Computers. Hardware. The Central Processing Unit (CPU) CMPT 125: Lecture 1: Understanding the Computer

Computers. Hardware. The Central Processing Unit (CPU) CMPT 125: Lecture 1: Understanding the Computer Computers CMPT 125: Lecture 1: Understanding the Computer Tamara Smyth, tamaras@cs.sfu.ca School of Computing Science, Simon Fraser University January 3, 2009 A computer performs 2 basic functions: 1.

More information

Polynomial Operations and Factoring

Polynomial Operations and Factoring Algebra 1, Quarter 4, Unit 4.1 Polynomial Operations and Factoring Overview Number of instructional days: 15 (1 day = 45 60 minutes) Content to be learned Identify terms, coefficients, and degree of polynomials.

More information

Current Standard: Mathematical Concepts and Applications Shape, Space, and Measurement- Primary

Current Standard: Mathematical Concepts and Applications Shape, Space, and Measurement- Primary Shape, Space, and Measurement- Primary A student shall apply concepts of shape, space, and measurement to solve problems involving two- and three-dimensional shapes by demonstrating an understanding of:

More information

General Framework for an Iterative Solution of Ax b. Jacobi s Method

General Framework for an Iterative Solution of Ax b. Jacobi s Method 2.6 Iterative Solutions of Linear Systems 143 2.6 Iterative Solutions of Linear Systems Consistent linear systems in real life are solved in one of two ways: by direct calculation (using a matrix factorization,

More information

5 Systems of Equations

5 Systems of Equations Systems of Equations Concepts: Solutions to Systems of Equations-Graphically and Algebraically Solving Systems - Substitution Method Solving Systems - Elimination Method Using -Dimensional Graphs to Approximate

More information

Numerical Analysis I

Numerical Analysis I Numerical Analysis I M.R. O Donohoe References: S.D. Conte & C. de Boor, Elementary Numerical Analysis: An Algorithmic Approach, Third edition, 1981. McGraw-Hill. L.F. Shampine, R.C. Allen, Jr & S. Pruess,

More information

EQUATIONS and INEQUALITIES

EQUATIONS and INEQUALITIES EQUATIONS and INEQUALITIES Linear Equations and Slope 1. Slope a. Calculate the slope of a line given two points b. Calculate the slope of a line parallel to a given line. c. Calculate the slope of a line

More information

This 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. 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 information

Big Ideas in Mathematics

Big Ideas in Mathematics Big Ideas in Mathematics which are important to all mathematics learning. (Adapted from the NCTM Curriculum Focal Points, 2006) The Mathematics Big Ideas are organized using the PA Mathematics Standards

More information

1. Give the 16 bit signed (twos complement) representation of the following decimal numbers, and convert to hexadecimal:

1. 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 information

23. RATIONAL EXPONENTS

23. RATIONAL EXPONENTS 23. RATIONAL EXPONENTS renaming radicals rational numbers writing radicals with rational exponents When serious work needs to be done with radicals, they are usually changed to a name that uses exponents,

More information

Credit Number Lecture Lab / Shop Clinic / Co-op Hours. MAC 224 Advanced CNC Milling 1 3 0 2. MAC 229 CNC Programming 2 0 0 2

Credit Number Lecture Lab / Shop Clinic / Co-op Hours. MAC 224 Advanced CNC Milling 1 3 0 2. MAC 229 CNC Programming 2 0 0 2 MAC 224 Advanced CNC Milling 1 3 0 2 This course covers advanced methods in setup and operation of CNC machining centers. Emphasis is placed on programming and production of complex parts. Upon completion,

More information

Session 7 Fractions and Decimals

Session 7 Fractions and Decimals Key Terms in This Session Session 7 Fractions and Decimals Previously Introduced prime number rational numbers New in This Session period repeating decimal terminating decimal Introduction In this session,

More information

Useful Number Systems

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 information

Precalculus Orientation and FAQ

Precalculus Orientation and FAQ Precalculus Orientation and FAQ MATH 1011 (Precalculus) is a four hour 3 credit course that prepares a student for Calculus. Topics covered include linear, quadratic, polynomial, rational, exponential,

More information

Review of Fundamental Mathematics

Review of Fundamental Mathematics Review of Fundamental Mathematics As explained in the Preface and in Chapter 1 of your textbook, managerial economics applies microeconomic theory to business decision making. The decision-making tools

More information

The Graphical Method: An Example

The Graphical Method: An Example The Graphical Method: An Example Consider the following linear program: Maximize 4x 1 +3x 2 Subject to: 2x 1 +3x 2 6 (1) 3x 1 +2x 2 3 (2) 2x 2 5 (3) 2x 1 +x 2 4 (4) x 1, x 2 0, where, for ease of reference,

More information

14.1. Basic Concepts of Integration. Introduction. Prerequisites. Learning Outcomes. Learning Style

14.1. Basic Concepts of Integration. Introduction. Prerequisites. Learning Outcomes. Learning Style Basic Concepts of Integration 14.1 Introduction When a function f(x) is known we can differentiate it to obtain its derivative df. The reverse dx process is to obtain the function f(x) from knowledge of

More information

THE BINARY NUMBER SYSTEM

THE 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 information

5.1 Simple and Compound Interest

5.1 Simple and Compound Interest 5.1 Simple and Compound Interest Question 1: What is simple interest? Question 2: What is compound interest? Question 3: What is an effective interest rate? Question 4: What is continuous compound interest?

More information

Problem of the Month: Once Upon a Time

Problem of the Month: Once Upon a Time Problem of the Month: The Problems of the Month (POM) are used in a variety of ways to promote problem solving and to foster the first standard of mathematical practice from the Common Core State Standards:

More information

South Carolina College- and Career-Ready (SCCCR) Algebra 1

South Carolina College- and Career-Ready (SCCCR) Algebra 1 South Carolina College- and Career-Ready (SCCCR) Algebra 1 South Carolina College- and Career-Ready Mathematical Process Standards The South Carolina College- and Career-Ready (SCCCR) Mathematical Process

More information

CHAPTER 4 DIMENSIONAL ANALYSIS

CHAPTER 4 DIMENSIONAL ANALYSIS CHAPTER 4 DIMENSIONAL ANALYSIS 1. DIMENSIONAL ANALYSIS Dimensional analysis, which is also known as the factor label method or unit conversion method, is an extremely important tool in the field of chemistry.

More information

FAST INVERSE SQUARE ROOT

FAST INVERSE SQUARE ROOT FAST INVERSE SQUARE ROOT CHRIS LOMONT Abstract. Computing reciprocal square roots is necessary in many applications, such as vector normalization in video games. Often, some loss of precision is acceptable

More information

CONNECTING LESSONS NGSS STANDARD

CONNECTING LESSONS NGSS STANDARD CONNECTING LESSONS TO NGSS STANDARDS 1 This chart provides an overview of the NGSS Standards that can be met by, or extended to meet, specific STEAM Student Set challenges. Information on how to fulfill

More information

CSI 333 Lecture 1 Number Systems

CSI 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 information

MATH 132: CALCULUS II SYLLABUS

MATH 132: CALCULUS II SYLLABUS MATH 32: CALCULUS II SYLLABUS Prerequisites: Successful completion of Math 3 (or its equivalent elsewhere). Math 27 is normally not a sufficient prerequisite for Math 32. Required Text: Calculus: Early

More information

SOLVING EQUATIONS WITH RADICALS AND EXPONENTS 9.5. section ( 3 5 3 2 )( 3 25 3 10 3 4 ). The Odd-Root Property

SOLVING EQUATIONS WITH RADICALS AND EXPONENTS 9.5. section ( 3 5 3 2 )( 3 25 3 10 3 4 ). The Odd-Root Property 498 (9 3) Chapter 9 Radicals and Rational Exponents Replace the question mark by an expression that makes the equation correct. Equations involving variables are to be identities. 75. 6 76. 3?? 1 77. 1

More information

Florida Math for College Readiness

Florida Math for College Readiness Core Florida Math for College Readiness Florida Math for College Readiness provides a fourth-year math curriculum focused on developing the mastery of skills identified as critical to postsecondary readiness

More information

Accentuate the Negative: Homework Examples from ACE

Accentuate the Negative: Homework Examples from ACE Accentuate the Negative: Homework Examples from ACE Investigation 1: Extending the Number System, ACE #6, 7, 12-15, 47, 49-52 Investigation 2: Adding and Subtracting Rational Numbers, ACE 18-22, 38(a),

More information

Equations, Inequalities & Partial Fractions

Equations, Inequalities & Partial Fractions Contents Equations, Inequalities & Partial Fractions.1 Solving Linear Equations 2.2 Solving Quadratic Equations 1. Solving Polynomial Equations 1.4 Solving Simultaneous Linear Equations 42.5 Solving Inequalities

More information

Temperature Scales. The metric system that we are now using includes a unit that is specific for the representation of measured temperatures.

Temperature Scales. The metric system that we are now using includes a unit that is specific for the representation of measured temperatures. Temperature Scales INTRODUCTION The metric system that we are now using includes a unit that is specific for the representation of measured temperatures. The unit of temperature in the metric system is

More information

MATH 4330/5330, Fourier Analysis Section 11, The Discrete Fourier Transform

MATH 4330/5330, Fourier Analysis Section 11, The Discrete Fourier Transform MATH 433/533, Fourier Analysis Section 11, The Discrete Fourier Transform Now, instead of considering functions defined on a continuous domain, like the interval [, 1) or the whole real line R, we wish

More information

2.2 Scientific Notation: Writing Large and Small Numbers

2.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

Continued Fractions and the Euclidean Algorithm

Continued Fractions and the Euclidean Algorithm Continued Fractions and the Euclidean Algorithm Lecture notes prepared for MATH 326, Spring 997 Department of Mathematics and Statistics University at Albany William F Hammond Table of Contents Introduction

More information

This is a square root. The number under the radical is 9. (An asterisk * means multiply.)

This is a square root. The number under the radical is 9. (An asterisk * means multiply.) Page of Review of Radical Expressions and Equations Skills involving radicals can be divided into the following groups: Evaluate square roots or higher order roots. Simplify radical expressions. Rationalize

More information

Chapter 4 Online Appendix: The Mathematics of Utility Functions

Chapter 4 Online Appendix: The Mathematics of Utility Functions Chapter 4 Online Appendix: The Mathematics of Utility Functions We saw in the text that utility functions and indifference curves are different ways to represent a consumer s preferences. Calculus can

More information

YOU CAN COUNT ON NUMBER LINES

YOU CAN COUNT ON NUMBER LINES Key Idea 2 Number and Numeration: Students use number sense and numeration to develop an understanding of multiple uses of numbers in the real world, the use of numbers to communicate mathematically, and

More information

1.6 The Order of Operations

1.6 The Order of Operations 1.6 The Order of Operations Contents: Operations Grouping Symbols The Order of Operations Exponents and Negative Numbers Negative Square Roots Square Root of a Negative Number Order of Operations and Negative

More information

Tennessee Mathematics Standards 2009-2010 Implementation. Grade Six Mathematics. Standard 1 Mathematical Processes

Tennessee Mathematics Standards 2009-2010 Implementation. Grade Six Mathematics. Standard 1 Mathematical Processes Tennessee Mathematics Standards 2009-2010 Implementation Grade Six Mathematics Standard 1 Mathematical Processes GLE 0606.1.1 Use mathematical language, symbols, and definitions while developing mathematical

More information

PLOTTING DATA AND INTERPRETING GRAPHS

PLOTTING DATA AND INTERPRETING GRAPHS PLOTTING DATA AND INTERPRETING GRAPHS Fundamentals of Graphing One of the most important sets of skills in science and mathematics is the ability to construct graphs and to interpret the information they

More information

Base Conversion written by Cathy Saxton

Base 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 information

POLYNOMIAL FUNCTIONS

POLYNOMIAL FUNCTIONS POLYNOMIAL FUNCTIONS Polynomial Division.. 314 The Rational Zero Test.....317 Descarte s Rule of Signs... 319 The Remainder Theorem.....31 Finding all Zeros of a Polynomial Function.......33 Writing a

More information

Indices and Surds. The Laws on Indices. 1. Multiplication: Mgr. ubomíra Tomková

Indices and Surds. The Laws on Indices. 1. Multiplication: Mgr. ubomíra Tomková Indices and Surds The term indices refers to the power to which a number is raised. Thus x is a number with an index of. People prefer the phrase "x to the power of ". Term surds is not often used, instead

More information

Pre-Algebra Lecture 6

Pre-Algebra Lecture 6 Pre-Algebra Lecture 6 Today we will discuss Decimals and Percentages. Outline: 1. Decimals 2. Ordering Decimals 3. Rounding Decimals 4. Adding and subtracting Decimals 5. Multiplying and Dividing Decimals

More information

Lectures 5-6: Taylor Series

Lectures 5-6: Taylor Series Math 1d Instructor: Padraic Bartlett Lectures 5-: Taylor Series Weeks 5- Caltech 213 1 Taylor Polynomials and Series As we saw in week 4, power series are remarkably nice objects to work with. In particular,

More information

Pearson Algebra 1 Common Core 2015

Pearson Algebra 1 Common Core 2015 A Correlation of Pearson Algebra 1 Common Core 2015 To the Common Core State Standards for Mathematics Traditional Pathways, Algebra 1 High School Copyright 2015 Pearson Education, Inc. or its affiliate(s).

More information

Math 348: Numerical Methods with application in finance and economics. Boualem Khouider University of Victoria

Math 348: Numerical Methods with application in finance and economics. Boualem Khouider University of Victoria Math 348: Numerical Methods with application in finance and economics Boualem Khouider University of Victoria Lecture notes: Updated January 2012 Contents 1 Basics of numerical analysis 9 1.1 Notion of

More information

Correctly Rounded Floating-point Binary-to-Decimal and Decimal-to-Binary Conversion Routines in Standard ML. By Prashanth Tilleti

Correctly Rounded Floating-point Binary-to-Decimal and Decimal-to-Binary Conversion Routines in Standard ML. By Prashanth Tilleti Correctly Rounded Floating-point Binary-to-Decimal and Decimal-to-Binary Conversion Routines in Standard ML By Prashanth Tilleti Advisor Dr. Matthew Fluet Department of Computer Science B. Thomas Golisano

More information