How fast can we add (or subtract) two numbers n and m?

Size: px
Start display at page:

Download "How fast can we add (or subtract) two numbers n and m?"

Transcription

1 Addition and Subtraction How fast do we add (or subtract) two numbers n and m? How fast can we add (or subtract) two numbers n and m? Definition. Let A(d) denote the maximal number of steps required to add two numbers with apple d bits. Theorem. A(d) d. Theorem. S(d) d.

2 Multiplication How fast do we multiply two numbers n and m? How fast can we multiply two numbers n and m? Definition. Let M(d) denote the number of steps required to multiply two numbers with apple d bits. Theorem. M(d) d 2. Can we do better? Yes How can we see easily that something better is possible?

3 Suppose M(d) d 1.5. Let d be large, and let " > 0. Let n and m have apple d bits, and write n = a n 2 r + b n and m = a m 2 r + b m, where r = bd/2c and the a j and b j are integers with b j < 2 r. From Attempt 2 Definition. Let M(d) denote the number of steps required to multiply two numbers with apple d bits. nm = a n a m 2 2r + (a n +b n )(a m +b m ) a n a m b n b m 2 r +b n b m, deduce M(d) apple 3M(r +2)+O(r) apple (3 + ")M(r +2). Hence, M(d) apple (3 + ") s M (d +2 s+2 4)/2 s. Take s = blog b 2 dc c C (with C big). Then 2 s d/2 C+1. Conclude, M(d) (3 + ") log 2 d = d log(3+")/ log 2.

4 Theorem. M(d) d 2. b c Conclude, M(d) (3 + ") log 2 d = d log(3+")/ log 2. log 3 log 2 = Theorem. M(d) d HW: Due September January 317 (Friday) Page 3, Problems 1 and 2 Page 5, unnumbered homework (first set) (you may use (log 5/ log 3) + " instead of log 5/ log 3)

5 Idea for Doing Better Let n and m have apple d bits, and write n = a n 2 r + b n and m = a m 2 r + b m, where r = bd/2c and the a j and b j are integers with b j < 2 r. From nm = a n a m 2 2r + (a n +b n )(a m +b m ) a n a m b n b m 2 r +b n b m, deduce M(d) apple 3M(r +2)+O(r) apple (3 + ")M(r +2). apple Think in terms of writing n = a n 2 2r + b n 2 r + c n and m = a m 2 2r + b m 2 r + c m, where r = bd/3c. b c How many multiplications does it take to expand nm?

6 Theorem. For every " > 0, wehavem(d) " d 1+". Theorem. M(d) d (log d)loglogd. Theorem. Given distinct numbers x 0,x 1,...,x k and numbers y 0,y 1,...,y k, there is a unique polynomial f of degree apple k such that f(x j )=y j for all j. apple Lagrange Interpolation: f(x) = kx Y x x j y i i=0 0applejapplek j6=i x i x j

7 Theorem. For every " > 0, wehavem(d) " d 1+". Suppose n and m have apple kr digits. Write n = k 1 X a u 2 ur and m = u=0 k 1 u=0 k 1 X b v 2 vr. X Xk 1 Then nm = f(2 r ), where X f(x) = X a u x u b v x. v Compute the 2k 1 numbers y j = f(j), for 0 apple j apple 2k 2, apple v=0 v=0 apple apple

8 apple Theorem. For every " > 0, wehavem(d) " d 1+". Lagrange Interpolation: Suppose n and m have apple kr digits. kx Y Write x x j f(x) = k 1 k x1 X n = a u 2 ur i=0 0applejapplek i x j X and m j6=i= b v 2 vr. u=0 k 1 X Xk 1 Then nm = f(2 r ), where X f(x) = X a u x u b v x. v X X u=0 Compute the 2k 1 numbers y j = f(j), for 0 apple j apple 2k 2, using 2k 1 multiplications of two apple r + c k digit numbers. apple Compute the coe cients of f(x) expanded, using Lagrange interpolation, in O k (r) steps. v=0 apple 0 v=0 apple apple y i

9 Theorem. For every " > 0, wehavem(d) " d 1+". Suppose n and Xm have apple kr digits. Write X kx 1 kx 1 n = a u 2 ur and m = b v 2 vr. u=0 k 1 k 1 Then nm = f(2 r X ), where X f(x) = X a u x u b v x. v X X apple apple Compute the 2k 1 numbers y j = f(j), for 0 apple j apple 2k 2, using 2k 1 multiplications of two apple r + c k digit numbers. Compute the coe cients of f(x) expanded, using Lagrange interpolation, in O k (r) steps. u=0 v=0 v=0 0 Deduce M(kr) apple apple (2k 1)M(r + c k )+c kr so that M(d) (2k 1) log k d d log(2k 1)/ log k.

10 Division Problem: Given two positive integers n and m, determine the quotient q and the remainder r when n is divided by m. These should be integers satisfying n = mq + r and 0 apple r<m. Definition. Let M 0 (d) denote an upper bound on the number of steps required to multiply two numbers with apple d bits. Let D 0 (d) denote an upper bound on the number of steps required to obtain q and r given n and m each have apple d binary digits. apple Theorem. Suppose M 0 (d) has the form df (d) where f(d) is an increasing function of d. Then D 0 (d) M 0 (d).

11 Problem: Given two positive integers n and m, determine the quotient q and the remainder r when n is divided by m. These should be integers satisfying n = mq + r and 0 apple r<m. We need only compute 1/m to su cient accuracy. Suppose n and m have apple s digits. If 1/m = 0.d 1 d 2 d 3 d 4... (base 2) with d 1,...,d s known, then n m = 1 2 s(n d 1d 2...d s )+, where 0 apple apple 1. Write this in the form n m = 1 2 s(q0 2 s + q 00 )+, so n = mq where 0 apple 0 < 2m. Tryq = q 0 and q = q 0 +1.

12 Problem: Given two positive integers n and m, determine the quotient q and the remainder r when n is divided by m. These should be integers satisfying n = mq + r and 0 apple r<m. We need only compute 1/m to su cient accuracy. Suppose n and m have apple s digits. If 1/m = 0.d 1 d 2 d 3 d 4... (base 2) with d 1,...,d s known, then n m = 1 2 s(n d 1d 2...d s )+, where 0 apple apple 1. Write this in the form n m = 1 2 s(q0 2 s + q 00 )+, so n = mq where 0 apple 0 < 2m. Tryq = q 0 and q = q 0 +1.

13 Newton s Method Say we want to compute 1/m. Take a function f(x) which has root 1/m. If x 0 is an approximation to the root, then how can we get a better approximation? Take f(x) =m 1/x. Starting with x 0 = x 0, this leads to the approximations x n+1 =2x n mx 2 n.

14 Newton s Method Say we want to compute 1/m. Take a function f(x) which has root 1/m. If x 0 is an approximation to the root, then how can we get a better approximation? Take f(x) =m 1/x. Starting with x 0 = x 0, this leads to the approximations x n+1 =2x n mx 2 n. Note that if x n =(1 ")/m, then x n+1 =(1 " 2 )/m.

15 Algorithm from Knuth, Vol. 2, pp Algorithm R. Let v in binary be v = (0.v 1 v 2 v 3...) 2, with v 1 = 1. The algorithm outputs z satisfying z 1/v apple 2 n. z 2 [0, 2] R1. [Initialize] Set z 1 4 b32/(4v 1 +2v 2 + v 3 )c and k 0. R2. [Newton iteration] (At this point, z apple 2 has the binary form (. ) 2 with 2 k +1 places after the radix point.) Calculate z 2 exactly. Then calculate V k z 2 exactly, where V k = (0.v 1 v 2...v 2 k+1 +3) 2. Then set z 2z V k z 2 + r, where 0 apple r<2 2k+1 1 is added if needed to round up z so that it is a multiple of 2 2k+1 1. Finally, set k k+1. R3. [End Test] If 2 k <n, go back to step R2; otherwise the algorithm terminates.

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

Computing Taylor series

Computing Taylor series TOPIC 9 Computing Taylor series Exercise 9.. Memorize the following x X e x cos x sin x X X X +x + x + x 3 +... xk +x + x + 6 x3 +... ( ) k (k)! xk ( ) k (k + )! xk+ x x +! x... For which values of x do

More information

Ch 7 Summary - POLYNOMIAL FUNCTIONS

Ch 7 Summary - POLYNOMIAL FUNCTIONS Ch 7 Summary - POLYNOMIAL FUNCTIONS 1. An open-top box is to be made by cutting congruent squares of side length x from the corners of a 8.5- by 11-inch sheet of cardboard and bending up the sides. a)

More information

Input Decidable Language -- Program Halts on all Input Encoding of Input -- Natural Numbers Encoded in Binary or Decimal, Not Unary

Input Decidable Language -- Program Halts on all Input Encoding of Input -- Natural Numbers Encoded in Binary or Decimal, Not Unary Complexity Analysis Complexity Theory Input Decidable Language -- Program Halts on all Input Encoding of Input -- Natural Numbers Encoded in Binary or Decimal, Not Unary Output TRUE or FALSE Time and Space

More information

L1 2.1 Long Division of Polynomials and The Remainder Theorem Lesson MHF4U Jensen

L1 2.1 Long Division of Polynomials and The Remainder Theorem Lesson MHF4U Jensen L1 2.1 Long Division of Polynomials and The Remainder Theorem Lesson MHF4U Jensen In this section you will apply the method of long division to divide a polynomial by a binomial. You will also learn to

More information

L1 2.1 Long Division of Polynomials and The Remainder Theorem Lesson MHF4U Jensen

L1 2.1 Long Division of Polynomials and The Remainder Theorem Lesson MHF4U Jensen L1 2.1 Long Division of Polynomials and The Remainder Theorem Lesson MHF4U Jensen In this section you will apply the method of long division to divide a polynomial by a binomial. You will also learn to

More information

Polynomial Review Problems

Polynomial Review Problems Polynomial Review Problems 1. Find polynomial function formulas that could fit each of these graphs. Remember that you will need to determine the value of the leading coefficient. The point (0,-3) is on

More information

NUMBERS AND CODES CHAPTER Numbers

NUMBERS AND CODES CHAPTER Numbers CHAPTER 2 NUMBERS AND CODES 2.1 Numbers When a number such as 101 is given, it is impossible to determine its numerical value. Some may say it is five. Others may say it is one hundred and one. Could it

More information

Conversions between Decimal and Binary

Conversions between Decimal and Binary Conversions between Decimal and Binary Binary to Decimal Technique - use the definition of a number in a positional number system with base 2 - evaluate the definition formula ( the formula ) using decimal

More information

Cryptography and Security Midterm Exam

Cryptography and Security Midterm Exam Cryptography and Security Midterm Exam Solution Serge Vaudenay 25.11.2015 duration: 1h45 no documents allowed, except one 2-sided sheet of handwritten notes a pocket calculator is allowed communication

More information

September 19, Do Now = Worksheet

September 19, Do Now = Worksheet Do Now -3 + 6 = HW Worksheet Review Adding and subtracting integers Think of adding and subtracting integers in terms of football If a player loses yards think of it as negative. If a player gains yards

More information

Numerical Analysis Solution of Algebraic Equation (non-linear equation) 1- Trial and Error. 2- Fixed point

Numerical Analysis Solution of Algebraic Equation (non-linear equation) 1- Trial and Error. 2- Fixed point Numerical Analysis Solution of Algebraic Equation (non-linear equation) 1- Trial and Error In this method we assume initial value of x, and substitute in the equation. Then modify x and continue till we

More information

12/31/2010. Digital Operations and Computations Course Notes. 01-Number Systems Text: Unit 1. Overview. What is a Digital System?

12/31/2010. Digital Operations and Computations Course Notes. 01-Number Systems Text: Unit 1. Overview. What is a Digital System? Digital Operations and Computations Course Notes 0-Number Systems Text: Unit Winter 20 Professor H. Louie Department of Electrical & Computer Engineering Seattle University ECEGR/ISSC 20 Digital Operations

More information

Exam 2. Average: 85.6 Median: 87.0 Maximum: Minimum: 55.0 Standard Deviation: Numerical Methods Fall 2011 Lecture 20

Exam 2. Average: 85.6 Median: 87.0 Maximum: Minimum: 55.0 Standard Deviation: Numerical Methods Fall 2011 Lecture 20 Exam 2 Average: 85.6 Median: 87.0 Maximum: 100.0 Minimum: 55.0 Standard Deviation: 10.42 Fall 2011 1 Today s class Multiple Variable Linear Regression Polynomial Interpolation Lagrange Interpolation Newton

More information

More Polynomial Equations Section 6.4

More Polynomial Equations Section 6.4 MATH 11009: More Polynomial Equations Section 6.4 Dividend: The number or expression you are dividing into. Divisor: The number or expression you are dividing by. Synthetic division: Synthetic division

More information

Chapter 1: Preliminaries and Error Analysis

Chapter 1: Preliminaries and Error Analysis Chapter 1: Error Analysis Peter W. White white@tarleton.edu Department of Tarleton State University Summer 2015 / Numerical Analysis Overview We All Remember Calculus Derivatives: limit definition, sum

More information

SYSTEMS OF NONLINEAR EQUATIONS

SYSTEMS OF NONLINEAR EQUATIONS SYSTEMS OF NONLINEAR EQUATIONS Widely used in the mathematical modeling of real world phenomena. We introduce some numerical methods for their solution. For better intuition, we examine systems of two

More information

Precalculus Chapter P.1 Part 2 of 3. Mr. Chapman Manchester High School

Precalculus Chapter P.1 Part 2 of 3. Mr. Chapman Manchester High School Precalculus Chapter P.1 Part of 3 Mr. Chapman Manchester High School Algebraic Expressions Evaluating Algebraic Expressions Using the Basic Rules and Properties of Algebra Definition of an Algebraic Expression:

More information

Algorithms CMSC Basic algorithms in Number Theory: Euclid s algorithm and multiplicative inverse

Algorithms CMSC Basic algorithms in Number Theory: Euclid s algorithm and multiplicative inverse Algorithms CMSC-27200 Basic algorithms in Number Theory: Euclid s algorithm and multiplicative inverse Instructor: László Babai Last updated 02-14-2015. Z denotes the set of integers. All variables in

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

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

Name: Chapter 7: Exponents and Polynomials

Name: Chapter 7: Exponents and Polynomials Name: Chapter 7: Exponents and Polynomials 7-1: Integer Exponents Objectives: Evaluate expressions containing zero and integer exponents. Simplify expressions containing zero and integer exponents. You

More information

EDULABZ INTERNATIONAL NUMBER SYSTEM

EDULABZ INTERNATIONAL NUMBER SYSTEM NUMBER SYSTEM 1. Find the product of the place value of 8 and the face value of 7 in the number 7801. Ans. Place value of 8 in 7801 = 800, Face value of 7 in 7801 = 7 Required product = 800 7 = 00. How

More information

6.1 Using Properties of Exponents 1. Use properties of exponents to evaluate and simplify expressions involving powers. Product of Powers Property

6.1 Using Properties of Exponents 1. Use properties of exponents to evaluate and simplify expressions involving powers. Product of Powers Property 6.1 Using Properties of Exponents Objectives 1. Use properties of exponents to evaluate and simplify expressions involving powers. 2. Use exponents and scientific notation to solve real life problems.

More information

Math 651 Introduction to Numerical Analysis I Fall SOLUTIONS: Homework Set 1

Math 651 Introduction to Numerical Analysis I Fall SOLUTIONS: Homework Set 1 ath 651 Introduction to Numerical Analysis I Fall 2010 SOLUTIONS: Homework Set 1 1. Consider the polynomial f(x) = x 2 x 2. (a) Find P 1 (x), P 2 (x) and P 3 (x) for f(x) about x 0 = 0. What is the relation

More information

, a 1. , a 2. ,..., a n

, a 1. , a 2. ,..., a n CHAPTER Points to Remember :. Let x be a variable, n be a positive integer and a 0, a, a,..., a n be constants. Then n f ( x) a x a x... a x a, is called a polynomial in variable x. n n n 0 POLNOMIALS.

More information

Section September 6, If n = 3, 4, 5,..., the polynomial is called a cubic, quartic, quintic, etc.

Section September 6, If n = 3, 4, 5,..., the polynomial is called a cubic, quartic, quintic, etc. Section 2.1-2.2 September 6, 2017 1 Polynomials Definition. A polynomial is an expression of the form a n x n + a n 1 x n 1 + + a 1 x + a 0 where each a 0, a 1,, a n are real numbers, a n 0, and n is a

More information

Section 6.6 Evaluating Polynomial Functions

Section 6.6 Evaluating Polynomial Functions Name: Period: Section 6.6 Evaluating Polynomial Functions Objective(s): Use synthetic substitution to evaluate polynomials. Essential Question: Homework: Assignment 6.6. #1 5 in the homework packet. Notes:

More information

Chapter 1: Solutions to Exercises

Chapter 1: Solutions to Exercises 1 DIGITAL ARITHMETIC Miloš D. Ercegovac and Tomás Lang Morgan Kaufmann Publishers, an imprint of Elsevier, c 2004 Exercise 1.1 (a) 1. 9 bits since 2 8 297 2 9 2. 3 radix-8 digits since 8 2 297 8 3 3. 3

More information

Twitter: @Owen134866 www.mathsfreeresourcelibrary.com Prior Knowledge Check 1) Simplify: a) 3x 2 5x 5 b) 5x3 y 2 15x 7 2) Factorise: a) x 2 2x 24 b) 3x 2 17x + 20 15x 2 y 3 3) Use long division to calculate:

More information

Divisibility, Factors, and Multiples

Divisibility, Factors, and Multiples Divisibility, Factors, and Multiples An Integer is said to have divisibility with another non-zero Integer if it can divide into the number and have a remainder of zero. Remember: Zero divided by any number

More information

1. Introduction to commutative rings and fields

1. Introduction to commutative rings and fields 1. Introduction to commutative rings and fields Very informally speaking, a commutative ring is a set in which we can add, subtract and multiply elements so that the usual laws hold. A field is a commutative

More information

A number that can be written as, where p and q are integers and q Number.

A number that can be written as, where p and q are integers and q Number. RATIONAL NUMBERS 1.1 Definition of Rational Numbers: What are rational numbers? A number that can be written as, where p and q are integers and q Number. 0, is known as Rational Example:, 12, -18 etc.

More information

We say that the base of the decimal number system is ten, represented by the symbol

We say that the base of the decimal number system is ten, represented by the symbol Introduction to counting and positional notation. In the decimal number system, a typical number, N, looks like... d 3 d 2 d 1 d 0.d -1 d -2 d -3... [N1] where the ellipsis at each end indicates that there

More information

CSE 20: Discrete Mathematics

CSE 20: Discrete Mathematics Spring 2018 Summary So far: Today: Logic and proofs Divisibility, modular arithmetics Number Systems More logic definitions and proofs Reading: All of Chap. 1 + Chap 4.1, 4.2. Divisibility P = 5 divides

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

Complex Numbers: Definition: A complex number is a number of the form: z = a + bi where a, b are real numbers and i is a symbol with the property: i

Complex Numbers: Definition: A complex number is a number of the form: z = a + bi where a, b are real numbers and i is a symbol with the property: i Complex Numbers: Definition: A complex number is a number of the form: z = a + bi where a, b are real numbers and i is a symbol with the property: i 2 = 1 Sometimes we like to think of i = 1 We can treat

More information

Polynomial functions over nite commutative rings

Polynomial functions over nite commutative rings Polynomial functions over nite commutative rings Balázs Bulyovszky a, Gábor Horváth a, a Institute of Mathematics, University of Debrecen, Pf. 400, Debrecen, 4002, Hungary Abstract We prove a necessary

More information

1.5 Linear Dependence and Linear Independence

1.5 Linear Dependence and Linear Independence 14. For v span(s 1 S ) we may write v = n i=1 a i x i with x i S 1 and x i S. So v is an element of both span(s 1 ) and span(s ) and hence an element of span(s 1 ) span(s ). For example we have if S 1

More information

Math 0310 Final Exam Review

Math 0310 Final Exam Review MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. Solve the linear equation and check the solution. 1) 13(x - 52) = 26 1) A) {26} B) {52} C) {50} D)

More information

Midterm Review. Igor Yanovsky (Math 151A TA)

Midterm Review. Igor Yanovsky (Math 151A TA) Midterm Review Igor Yanovsky (Math 5A TA) Root-Finding Methods Rootfinding methods are designed to find a zero of a function f, that is, to find a value of x such that f(x) =0 Bisection Method To apply

More information

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. Calculus I - Homework Chapter 2 Name MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. Determine whether the graph is the graph of a function. 1) 1)

More information

Warm-Up. Simplify the following terms:

Warm-Up. Simplify the following terms: Warm-Up Simplify the following terms: 81 40 20 i 3 i 16 i 82 TEST Our Ch. 9 Test will be on 5/29/14 Complex Number Operations Learning Targets Adding Complex Numbers Multiplying Complex Numbers Rules for

More information

Continuing discussion of CRC s, especially looking at two-bit errors

Continuing discussion of CRC s, especially looking at two-bit errors Continuing discussion of CRC s, especially looking at two-bit errors The definition of primitive binary polynomials Brute force checking for primitivity A theorem giving a better test for primitivity Fast

More information

CLASS - X Mathematics (Real Number)

CLASS - X Mathematics (Real Number) CLASS - X Mathematics (Real Number) 1. 7 11 13 15 + 15is a (a) Composite number (c) Prime number (b) Whole number (d) None of these. For what least value of n a natural number, ( 4) n is divisible by 8?

More information

Definitions. Notations. Injective, Surjective and Bijective. Divides. Cartesian Product. Relations. Equivalence Relations

Definitions. Notations. Injective, Surjective and Bijective. Divides. Cartesian Product. Relations. Equivalence Relations Page 1 Definitions Tuesday, May 8, 2018 12:23 AM Notations " " means "equals, by definition" the set of all real numbers the set of integers Denote a function from a set to a set by Denote the image of

More information

CPSC 467: Cryptography and Computer Security

CPSC 467: Cryptography and Computer Security CPSC 467: Cryptography and Computer Security Michael J. Fischer Lecture 9 September 30, 2015 CPSC 467, Lecture 9 1/47 Fast Exponentiation Algorithms Number Theory Needed for RSA Elementary Number Theory

More information

Perform the following operations. 1) (2x + 3) + (4x 5) 2) 2(x + 3) 3) 2x (x 4) 4) (2x + 3)(3x 5) 5) (x 4)(x 2 3x + 5)

Perform the following operations. 1) (2x + 3) + (4x 5) 2) 2(x + 3) 3) 2x (x 4) 4) (2x + 3)(3x 5) 5) (x 4)(x 2 3x + 5) 2/24 week Add subtract polynomials 13.1 Multiplying Polynomials 13.2 Radicals 13.6 Completing the square 13.7 Real numbers 15.1 and 15.2 Complex numbers 15.3 and 15.4 Perform the following operations 1)

More information

CSE 241 Digital Systems Spring 2013

CSE 241 Digital Systems Spring 2013 CSE 241 Digital Systems Spring 2013 Instructor: Prof. Kui Ren Department of Computer Science and Engineering Lecture slides modified from many online resources and used solely for the educational purpose.

More information

1. Introduction to commutative rings and fields

1. Introduction to commutative rings and fields 1. Introduction to commutative rings and fields Very informally speaking, a commutative ring is a set in which we can add, subtract and multiply elements so that the usual laws hold. A field is a commutative

More information

Solving Equations Quick Reference

Solving Equations Quick Reference Solving Equations Quick Reference Integer Rules Addition: If the signs are the same, add the numbers and keep the sign. If the signs are different, subtract the numbers and keep the sign of the number

More information

Partial Fractions. June 27, In this section, we will learn to integrate another class of functions: the rational functions.

Partial Fractions. June 27, In this section, we will learn to integrate another class of functions: the rational functions. Partial Fractions June 7, 04 In this section, we will learn to integrate another class of functions: the rational functions. Definition. A rational function is a fraction of two polynomials. For example,

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

3.1 Interpolation and the Lagrange Polynomial

3.1 Interpolation and the Lagrange Polynomial MATH 4073 Chapter 3 Interpolation and Polynomial Approximation Fall 2003 1 Consider a sample x x 0 x 1 x n y y 0 y 1 y n. Can we get a function out of discrete data above that gives a reasonable estimate

More information

Menu. Review of Number Systems EEL3701 EEL3701. Math. Review of number systems >Binary math >Signed number systems

Menu. Review of Number Systems EEL3701 EEL3701. Math. Review of number systems >Binary math >Signed number systems Menu Review of number systems >Binary math >Signed number systems Look into my... 1 Our decimal (base 10 or radix 10) number system is positional. Ex: 9437 10 = 9x10 3 + 4x10 2 + 3x10 1 + 7x10 0 We have

More information

3.3 Dividing Polynomials. Copyright Cengage Learning. All rights reserved.

3.3 Dividing Polynomials. Copyright Cengage Learning. All rights reserved. 3.3 Dividing Polynomials Copyright Cengage Learning. All rights reserved. Objectives Long Division of Polynomials Synthetic Division The Remainder and Factor Theorems 2 Dividing Polynomials In this section

More information

Zeros and Roots of a Polynomial Function. Return to Table of Contents

Zeros and Roots of a Polynomial Function. Return to Table of Contents Zeros and Roots of a Polynomial Function Return to Table of Contents 182 Real Zeros of Polynomial Functions For a function f(x) and a real number a, if f (a) = 0, the following statements are equivalent:

More information

6.4 Division of Polynomials. (Long Division and Synthetic Division)

6.4 Division of Polynomials. (Long Division and Synthetic Division) 6.4 Division of Polynomials (Long Division and Synthetic Division) When we combine fractions that have a common denominator, we just add or subtract the numerators and then keep the common denominator

More information

8.3 Partial Fraction Decomposition

8.3 Partial Fraction Decomposition 8.3 partial fraction decomposition 575 8.3 Partial Fraction Decomposition Rational functions (polynomials divided by polynomials) and their integrals play important roles in mathematics and applications,

More information

Dividing Polynomials: Remainder and Factor Theorems

Dividing Polynomials: Remainder and Factor Theorems Dividing Polynomials: Remainder and Factor Theorems When we divide one polynomial by another, we obtain a quotient and a remainder. If the remainder is zero, then the divisor is a factor of the dividend.

More information

Lecture 6: Finite Fields (PART 3) PART 3: Polynomial Arithmetic. Theoretical Underpinnings of Modern Cryptography

Lecture 6: Finite Fields (PART 3) PART 3: Polynomial Arithmetic. Theoretical Underpinnings of Modern Cryptography Lecture 6: Finite Fields (PART 3) PART 3: Polynomial Arithmetic Theoretical Underpinnings of Modern Cryptography Lecture Notes on Computer and Network Security by Avi Kak (kak@purdue.edu) January 26, 2017

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

Polynomial and Synthetic Division

Polynomial and Synthetic Division Polynomial and Synthetic Division Polynomial Division Polynomial Division is very similar to long division. Example: 3x 3 5x 3x 10x 1 3 Polynomial Division 3x 1 x 3x 3 3 x 5x 3x x 6x 4 10x 10x 7 3 x 1

More information

( ) y 2! 4. ( )( y! 2)

( ) y 2! 4. ( )( y! 2) 1. Dividing: 4x3! 8x 2 + 6x 2x 5.7 Division of Polynomials = 4x3 2x! 8x2 2x + 6x 2x = 2x2! 4 3. Dividing: 1x4 + 15x 3! 2x 2!5x 2 = 1x4!5x 2 + 15x3!5x 2! 2x2!5x 2 =!2x2! 3x + 4 5. Dividing: 8y5 + 1y 3!

More information

Core Mathematics 2 Algebra

Core Mathematics 2 Algebra Core Mathematics 2 Algebra Edited by: K V Kumaran Email: kvkumaran@gmail.com Core Mathematics 2 Algebra 1 Algebra and functions Simple algebraic division; use of the Factor Theorem and the Remainder Theorem.

More information

CSCE 564, Fall 2001 Notes 6 Page 1 13 Random Numbers The great metaphysical truth in the generation of random numbers is this: If you want a function

CSCE 564, Fall 2001 Notes 6 Page 1 13 Random Numbers The great metaphysical truth in the generation of random numbers is this: If you want a function CSCE 564, Fall 2001 Notes 6 Page 1 13 Random Numbers The great metaphysical truth in the generation of random numbers is this: If you want a function that is reasonably random in behavior, then take any

More information

Chapter 5: Solutions to Exercises

Chapter 5: Solutions to Exercises 1 DIGITAL ARITHMETIC Miloš D. Ercegovac and Tomás Lang Morgan Kaufmann Publishers, an imprint of Elsevier Science, c 2004 Updated: September 9, 2003 Chapter 5: Solutions to Selected Exercises With contributions

More information

Math /Foundations of Algebra/Fall 2017 Numbers at the Foundations: Real Numbers In calculus, the derivative of a function f(x) is defined

Math /Foundations of Algebra/Fall 2017 Numbers at the Foundations: Real Numbers In calculus, the derivative of a function f(x) is defined Math 400-001/Foundations of Algebra/Fall 2017 Numbers at the Foundations: Real Numbers In calculus, the derivative of a function f(x) is defined using limits. As a particular case, the derivative of f(x)

More information

SCORE BOOSTER JAMB PREPARATION SERIES II

SCORE BOOSTER JAMB PREPARATION SERIES II BOOST YOUR JAMB SCORE WITH PAST Polynomials QUESTIONS Part II ALGEBRA by H. O. Aliu J. K. Adewole, PhD (Editor) 1) If 9x 2 + 6xy + 4y 2 is a factor of 27x 3 8y 3, find the other factor. (UTME 2014) 3x

More information

SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION

SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION CHAPTER 5 SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION Copyright Cengage Learning. All rights reserved. SECTION 5.4 Strong Mathematical Induction and the Well-Ordering Principle for the Integers Copyright

More information

Svoboda-Tung Division With No Compensation

Svoboda-Tung Division With No Compensation Svoboda-Tung Division With No Compensation Luis MONTALVO (IEEE Student Member), Alain GUYOT Integrated Systems Design Group, TIMA/INPG 46, Av. Félix Viallet, 38031 Grenoble Cedex, France. E-mail: montalvo@archi.imag.fr

More information

1 Solutions to selected problems

1 Solutions to selected problems Solutions to selected problems Section., #a,c,d. a. p x = n for i = n : 0 p x = xp x + i end b. z = x, y = x for i = : n y = y + x i z = zy end c. y = (t x ), p t = a for i = : n y = y(t x i ) p t = p

More information

Maintaining Mathematical Proficiency

Maintaining Mathematical Proficiency Chapter Maintaining Mathematical Proficiency Simplify the expression. 1. 8x 9x 2. 25r 5 7r r + 3. 3 ( 3x 5) + + x. 3y ( 2y 5) + 11 5. 3( h 7) 7( 10 h) 2 2 +. 5 8x + 5x + 8x Find the volume or surface area

More information

ALU (3) - Division Algorithms

ALU (3) - Division Algorithms HUMBOLDT-UNIVERSITÄT ZU BERLIN INSTITUT FÜR INFORMATIK Lecture 12 ALU (3) - Division Algorithms Sommersemester 2002 Leitung: Prof. Dr. Miroslaw Malek www.informatik.hu-berlin.de/rok/ca CA - XII - ALU(3)

More information

Interpolation and Approximation

Interpolation and Approximation Interpolation and Approximation The Basic Problem: Approximate a continuous function f(x), by a polynomial p(x), over [a, b]. f(x) may only be known in tabular form. f(x) may be expensive to compute. Definition:

More information

H-Pre-Calculus Targets Chapter I can write quadratic functions in standard form and use the results to sketch graphs of the function.

H-Pre-Calculus Targets Chapter I can write quadratic functions in standard form and use the results to sketch graphs of the function. H-Pre-Calculus Targets Chapter Section. Sketch and analyze graphs of quadratic functions.. I can write quadratic functions in standard form and use the results to sketch graphs of the function. Identify

More information

CHAPTER 2 POLYNOMIALS KEY POINTS

CHAPTER 2 POLYNOMIALS KEY POINTS CHAPTER POLYNOMIALS KEY POINTS 1. Polynomials of degrees 1, and 3 are called linear, quadratic and cubic polynomials respectively.. A quadratic polynomial in x with real coefficient is of the form a x

More information

Piecewise Polynomial Interpolation

Piecewise Polynomial Interpolation Piecewise Polynomial Interpolation 1 Piecewise linear interpolation Suppose we have data point (x k,y k ), k =0, 1,...N. A piecewise linear polynomial that interpolates these points is given by p(x) =p

More information

Application of Polynomial Interpolation in the Chinese Remainder Problem

Application of Polynomial Interpolation in the Chinese Remainder Problem Journal of Mathematical Research with Applications Jan., 017, Vol. 37, No. 1, pp. 90 96 DOI:10.3770/j.issn:095-651.017.01.008 Http://jmre.dlut.edu.cn Application of Polynomial Interpolation in the Chinese

More information

Example #3: 14 (5 + 2) 6 = = then add = 1 x (-3) then. = 1.5 = add

Example #3: 14 (5 + 2) 6 = = then add = 1 x (-3) then. = 1.5 = add Grade 9 Curricular content Operations with rational numbers (addition, subtraction, multiplication, division and order of operations) -incudes brackets and exponents (exponent laws) -exponents includes

More information

CHAPTER 14. Ideals and Factor Rings

CHAPTER 14. Ideals and Factor Rings CHAPTER 14 Ideals and Factor Rings Ideals Definition (Ideal). A subring A of a ring R is called a (two-sided) ideal of R if for every r 2 R and every a 2 A, ra 2 A and ar 2 A. Note. (1) A absorbs elements

More information

Topics in Computer Mathematics

Topics in Computer Mathematics Random Number Generation (Uniform random numbers) Introduction We frequently need some way to generate numbers that are random (by some criteria), especially in computer science. Simulations of natural

More information

Math 1302 Notes 2. How many solutions? What type of solution in the real number system? What kind of equation is it?

Math 1302 Notes 2. How many solutions? What type of solution in the real number system? What kind of equation is it? Math 1302 Notes 2 We know that x 2 + 4 = 0 has How many solutions? What type of solution in the real number system? What kind of equation is it? What happens if we enlarge our current system? Remember

More information

CHAPTER 2 NUMBER SYSTEMS

CHAPTER 2 NUMBER SYSTEMS CHAPTER 2 NUMBER SYSTEMS The Decimal Number System : We begin our study of the number systems with the familiar decimal number system. The decimal system contains ten unique symbol 0, 1, 2, 3, 4, 5, 6,

More information

Homework and Computer Problems for Math*2130 (W17).

Homework and Computer Problems for Math*2130 (W17). Homework and Computer Problems for Math*2130 (W17). MARCUS R. GARVIE 1 December 21, 2016 1 Department of Mathematics & Statistics, University of Guelph NOTES: These questions are a bare minimum. You should

More information

Mathematical Foundations of Cryptography

Mathematical Foundations of Cryptography Mathematical Foundations of Cryptography Cryptography is based on mathematics In this chapter we study finite fields, the basis of the Advanced Encryption Standard (AES) and elliptical curve cryptography

More information

Bell Quiz 2-3. Determine the end behavior of the graph using limit notation. Find a function with the given zeros , 2. 5 pts possible.

Bell Quiz 2-3. Determine the end behavior of the graph using limit notation. Find a function with the given zeros , 2. 5 pts possible. Bell Quiz 2-3 2 pts Determine the end behavior of the graph using limit notation. 5 2 1. g( ) = 8 + 13 7 3 pts Find a function with the given zeros. 4. -1, 2 5 pts possible Ch 2A Big Ideas 1 Questions

More information

INFINITE SEQUENCES AND SERIES

INFINITE SEQUENCES AND SERIES 11 INFINITE SEQUENCES AND SERIES INFINITE SEQUENCES AND SERIES In section 11.9, we were able to find power series representations for a certain restricted class of functions. INFINITE SEQUENCES AND SERIES

More information

Discrete valuation rings. Suppose F is a field. A discrete valuation on F is a function v : F {0} Z such that:

Discrete valuation rings. Suppose F is a field. A discrete valuation on F is a function v : F {0} Z such that: Discrete valuation rings Suppose F is a field. A discrete valuation on F is a function v : F {0} Z such that: 1. v is surjective. 2. v(ab) = v(a) + v(b). 3. v(a + b) min(v(a), v(b)) if a + b 0. Proposition:

More information

SCHOOL OF MATHEMATICS MATHEMATICS FOR PART I ENGINEERING. Self-paced Course

SCHOOL OF MATHEMATICS MATHEMATICS FOR PART I ENGINEERING. Self-paced Course SCHOOL OF MATHEMATICS MATHEMATICS FOR PART I ENGINEERING Self-paced Course MODULE ALGEBRA Module Topics Simplifying expressions and algebraic functions Rearranging formulae Indices 4 Rationalising a denominator

More information

Lecture 11. Advanced Dividers

Lecture 11. Advanced Dividers Lecture 11 Advanced Dividers Required Reading Behrooz Parhami, Computer Arithmetic: Algorithms and Hardware Design Chapter 15 Variation in Dividers 15.3, Combinational and Array Dividers Chapter 16, Division

More information

Jim Lambers MAT 460/560 Fall Semester Practice Final Exam

Jim Lambers MAT 460/560 Fall Semester Practice Final Exam Jim Lambers MAT 460/560 Fall Semester 2009-10 Practice Final Exam 1. Let f(x) = sin 2x + cos 2x. (a) Write down the 2nd Taylor polynomial P 2 (x) of f(x) centered around x 0 = 0. (b) Write down the corresponding

More information

Algebra Summer Review Packet

Algebra Summer Review Packet Name: Algebra Summer Review Packet About Algebra 1: Algebra 1 teaches students to think, reason, and communicate mathematically. Students use variables to determine solutions to real world problems. Skills

More information

Section 0.2 & 0.3 Worksheet. Types of Functions

Section 0.2 & 0.3 Worksheet. Types of Functions MATH 1142 NAME Section 0.2 & 0.3 Worksheet Types of Functions Now that we have discussed what functions are and some of their characteristics, we will explore different types of functions. Section 0.2

More information

ADDITONAL MATHEMATICS

ADDITONAL MATHEMATICS ADDITONAL MATHEMATICS 2002 2011 CLASSIFIED REMAINDER THEOREM Compiled & Edited By Dr. Eltayeb Abdul Rhman www.drtayeb.tk First Edition 2011 7 5 (i) Show that 2x 1 is a factor of 2x 3 5x 2 + 10x 4. [2]

More information

Quiz 07a. Integers Modulo 12

Quiz 07a. Integers Modulo 12 MA 3260 Lecture 07 - Binary Operations Friday, September 28, 2018. Objectives: Continue with binary operations. Quiz 07a We have a machine that is set to run for x hours, turn itself off for 3 hours, and

More information

Synthetic Substitution

Synthetic Substitution Write your questions and thoughts here! 7.2 Synthetic and Long Polynomial Division 1 Use direct substitution to evaluate t a = a! a! + a + 5 when a = - 2 Synthetic Substitution Synthetic substitution is

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

Warm-Up. Use long division to divide 5 into

Warm-Up. Use long division to divide 5 into Warm-Up Use long division to divide 5 into 3462. 692 5 3462-30 46-45 12-10 2 Warm-Up Use long division to divide 5 into 3462. Divisor 692 5 3462-30 46-45 12-10 2 Quotient Dividend Remainder Warm-Up Use

More information

Fast Fraction-Integer Method for Computing Multiplicative Inverse

Fast Fraction-Integer Method for Computing Multiplicative Inverse Fast Fraction-Integer Method for Computing Multiplicative Inverse Hani M AL-Matari 1 and Sattar J Aboud 2 and Nidal F Shilbayeh 1 1 Middle East University for Graduate Studies, Faculty of IT, Jordan-Amman

More information